Forum Replies Created

Viewing 15 posts - 2,356 through 2,370 (of 2,964 total)
  • Author
    Posts
  • in reply to: Lock Fields based on Capability #2061
    Steve
    Keymaster

    @zanedickens– Another way is to create two meta boxes, and use the Role parameter to limit who sees them.
    -Creator
    -Reviewer

    In the Creator meta box, create the normal Piklist Fields.

    In the Reviewer meta box, pull the data (i.e. get_post_custom if a CPT), and then display the data using the Piklist HTML field.

    Let us know if you need any help.

    in reply to: Bugs in 0.9.4.0 #2056
    Steve
    Keymaster

    @chrissoutham– Was just able to push an update for the tabs. We don’t see the issue with “Remove Dashboard Widgets” or “Remove Widgets”.

    Can you email screenshots to: [email protected]

    in reply to: Bugs in 0.9.4.0 #2052
    Steve
    Keymaster

    @chrissoutham– Just released WP Helpers v1.5.5 which fixes the issue. So happy you’re loving Piklist and WP Helpers!

    in reply to: Bugs in 0.9.4.0 #2050
    Steve
    Keymaster

    @chrisoutham– We replaced the function. Will have a solution in a few hours.

    in reply to: Bugs in 0.9.4.0 #2045
    Steve
    Keymaster

    Tab Order is not broke… it just never really worked. So we fixed it, but forgot to document it. 😉

    You can set Tab Order in the files for each tab section. Piklist will only honor the first file that sets this for that tab. So if you have multiple sections (files) assigned to one tab, make sure the first one (or all of them), have the correct (same) tab order.

    The default settings tab that was registered using the piklist_admin_pages filter and default_tab parameter, will automatically be set to Tab Order: 10. This allows you place tabs before it if you like.
    example: Tab Order: 20

    Updated docs >

    Let me know if this makes sense or needs further clarification.

    in reply to: piklist + foundation #2036
    Steve
    Keymaster

    I see no reason why Piklist and Foundation wouldn’t play nice together. If you try it, please let us know.

    in reply to: piklist + foundation #2034
    Steve
    Keymaster

    What is Foundation?

    Steve
    Keymaster

    There was a typo in our documentation. hide_meta_box should go inside the configuration array:

    ,'configuration' => array(
      'hierarchical' => false
      ,'hide_meta_box' => true
      ,'labels' => piklist('taxonomy_labels', 'Model')
      ,'show_ui' => true
      ,'query_var' => true
      ,'rewrite' => array( 
        'slug' => 'model' 
      )
    )
    

    Our documentation has been updated >

    Steve
    Keymaster

    @catacaly– I can’t reproduce this issue. Please post your code for the CPT and Tax.

    in reply to: Sort columns for custom post types #2026
    Steve
    Keymaster

    @mattyd247– Glad you’re enjoying Piklist. Sortable list table columns are not ready yet. You’re going to have to go old school >

    in reply to: Conditional Metabox #2022
    Steve
    Keymaster

    In the next version of Piklist you will be able to do this with the piklist_get_file_data filter:

    EXAMPLE:
    Allow Piklist to read “User ID” in comment block

    add_filter('piklist_get_file_data', 'allow_user_id', 10, 2);
    function allow_user_id($data, $type)
    {
      // If not a User section than bail
      if($type != 'users')
      {
        return $data;
      }
    
      // Allow the comment block to read the "User ID" attribute.
      $data['user_id'] = 'User ID';
    
      return $data;
    }
    
    Steve
    Keymaster

    @catacaly– There are three ways you can do this:

    1) CONDITIONS: Piklist has an ‘update’ condition you can see in Piklist Demos > Add New Demo > Conditions tab. You will still have to built out all your lists and associations.
    2) SETTINGS TABS: This may not be ideal, but it would work. Each tab is Manufacturer > Model > Year. When you click on the Model tab, you can run a query against the value’s set in Manufacturer.
    3) AJAX: You would have to write your own ajax methods, but you can dynamically load dropdowns based on another field.

    Hope this helps.

    in reply to: Have a Metabox take inputs #2019
    Steve
    Keymaster

    @zanedickens– Luckily you’re using Piklist 😉

    You can easily save the data to the current users profile. This way you use ONE Post Type form, but save the data as user_meta.

    First make sure that this is at the top of each file:

    $current_user = wp_get_current_user();
    

    Add this to each field:

    ,'scope' => 'user_meta'
    ,'object_id' => $current_user->ID
    

    This should work with the current version of Piklist. If not, email us at [email protected]

    in reply to: Bug – Fields Duplicating on Save (Urgent) #2018
    Steve
    Keymaster

    Yup… duplicate fields can cause things to blow up. 😉

    in reply to: Admin pages #2013
    Steve
    Keymaster

    @stebcom– You can use the standard WordPress parameter show_in_menu for the custom post type. Full code below:

    add_filter('piklist_admin_pages', 'custom_options');
    function custom_options($pages)
    {
    $pages[] = array(
      'page_title' => __('Custom options', 'piklist')
      ,'menu_title' => __('Options', 'piklist')
      ,'capability' => 'manage_options'
      ,'menu_slug' => 'custom-options'
      ,'setting' => 'custom_settings'
      ,'save_text' => 'Save these settings'
    );
    
      return $pages;
    }
    
    
    
    add_filter('piklist_post_types', 'custom_posts');
    function custom_posts($post_types)
    {
      $post_types['custom_post'] = array(
        'labels' => piklist('post_type_labels', 'Custom')
        ,'title' => __('Enter a new Custom Post')
        ,'public' => true
        ,'show_in_menu' => 'custom-options'
        ,'has_archive' => true
        ,'supports' => array(
          'title'
          ,'editor'
        )
        ,'rewrite' => array(
          'slug' => 'custom-posts'
        )
        ,'capability_type' => 'post'
      );
    
      return $post_types;
    }
    
Viewing 15 posts - 2,356 through 2,370 (of 2,964 total)