Forum Replies Created

Viewing 15 posts - 2,236 through 2,250 (of 2,964 total)
  • Author
    Posts
  • in reply to: Formulas / Calculations #2457
    Steve
    Keymaster

    @bayfish– Piklist doesn’t currently have “dynamic” formulas (i.e. you change one field, and the calculation changes for another). You would have to save you page, pull the data and do the calculation.

    in reply to: Can't set value of editor field #2453
    Steve
    Keymaster

    @wpkonsulterna–- I’m running a development version sorry. Email me at [email protected], and we’ll help you out.

    in reply to: Can't set value of editor field #2449
    Steve
    Keymaster

    @wpkonsulterna–- This fix will be in the next version of Piklist, but you can fix it now.

    Open includes/class-piklist-form.php, and replace line 652:

    if (!is_wp_error($object))
    

    with this:

    if (!is_wp_error($object) && $object->post_status != 'auto-draft')
    
    in reply to: Custom Post Type in a Piklist workflow tab #2447
    Steve
    Keymaster

    @norboo

    1) Do you want to add Workflow tabs to the CPT bgmp?
    2) What would go in each tab?
    3) You can use this tutorial to display any taxonomy you want.

    in reply to: Custom Post Type in a Piklist workflow tab #2446
    Steve
    Keymaster

    @norboo

    1) Do you want to add Workflow tabs to the CPT bgmp?
    2) What would go in each tab?
    3) You can use this tutorial to display any taxonomy you want.

    in reply to: Set post status by default #2442
    Steve
    Keymaster

    @wpkonsulterna– This is a great idea, but I don’t think it’s going to work unless you want to hide the default publish box and build a new dropdown with post status (i.e. you would need to add 'scope'=> 'post'.

    I found this old plugin, and with a few tweaks, I made it work with a custom post type. You may need to test further:

    function default_post_visibility()
    {
      global $post;
    
      if($post->post_type != 'MY_CUSTOM_POST_TYPE')
      {
        return;
      }
    
      if ('publish' == $post->post_status)
      {
          $visibility = 'public';
          $visibility_trans = __('Public');
      }
      elseif (!empty( $post->post_password))
      {
          $visibility = 'password';
          $visibility_trans = __('Password protected');
      }
      elseif ($post->post_type == 'MY_CUSTOM_POST_TYPE' && is_sticky($post->ID))
      {
          $visibility = 'public';
          $visibility_trans = __('Public, Sticky');
      }
      else
      {
          $post->post_password = '';
          $visibility = 'private';
          $visibility_trans = __('Private');
      }
      ?>
    
      
    
    
    		
    	
    in reply to: Woocommerce #2439
    Steve
    Keymaster

    @mattyd247– You can add a metabox and fields using Piklist for ANY Post Type… including those registered by other plugins like Woocommerce.

    in reply to: User Taxonomy in Admin column #2436
    Steve
    Keymaster

    @norboo– Awesome! show_admin_column for user taxonomies will be supported in the next version of Piklist. Closing this ticket.

    in reply to: Editor field wpautop option not working? #2433
    Steve
    Keymaster

    @simon– There are TWO wpautop functions in WordPress… one PHP and one Javascript. What Kevin showed you is for PHP output. The wpautop parameter controls paragraph breaks in the editor. Here’s a little movie I put together to demonstrate.

    in reply to: Can't set value of editor field #2432
    Steve
    Keymaster

    @wpkonsulterna– It looks like you are trying to replace the default editor with a Piklist editor, correct?

    Either way this is a bug. When setting the scope => post, the value parameter doesn’t work correctly.

    in reply to: User Taxonomy in Admin column #2429
    Steve
    Keymaster

    @norboo– Sorry for the late reply. Pikilst doesn’t support this yet, but since Piklist does everything the WordPress way, you can easily add this using standard WordPress actions. Place code in your main plugin file, or your themes functions.php. It should look like this when viewing the User List.

    add_filter('manage_users_columns', 'user_column_header', 10, 2);
    add_action('manage_users_custom_column', 'user_column_data', 10, 3);
    
    function user_column_header($columns)
    {
      $columns['user_type'] = __('User Type');
    
      return $columns;
    }
    
    function user_column_data($term_list, $column, $value)
    {
      switch ($column)
      {
        case 'user_type':
          
          $term = wp_get_object_terms($value, 'user_type');
    
          if(isset($term[0]))
          {
            $prefix = '';
    
            foreach ($term as $name => $value)
            {
              $term_list .= $prefix . $value->name;
              $prefix = ', ';
            }
          }
          else
          {
            $term_list = '';
          }
    
        break;
    
        default:
    
          $term_list = '';
    
        break;
      }
      
      return $term_list;
    }
    
    in reply to: [Bug] Two file fields inside an add_more does not save correctly #2428
    Steve
    Keymaster

    @simon– You’ve actually found two bugs:
    1) This configuration does not play nice with the field template.
    2) They don’t save properly.

    We will work on a fix.

    in reply to: Returning false to piklist_pre_update_option #2418
    Steve
    Keymaster

    @jason. Done 😉 Closing ticket.

    in reply to: HTML Docs need some fixin #2416
    Steve
    Keymaster

    @jason– I was testing meta, you were testing settings. The field parameter is only required for settings pages. I updated the docs >

    in reply to: Returning false to piklist_pre_update_option #2415
    Steve
    Keymaster

    @jason– This sounds like a great feature, but I’m not sure it should be in Piklist core. This kinda sounds like an edge-case, no?

Viewing 15 posts - 2,236 through 2,250 (of 2,964 total)