Viewing 3 reply threads
  • Author
    Posts
    • #4856
      hozefasmile
      Member

      Hi,

      I am using piklist beta 0.9.9.6

      I am trying to create a field for category so I have followed the instruction as provided in documentation and created a file my-terms-cat.php under themefolder/piklist/parts/terms/
      The code is as follows: –

      <?php
      /*
      Title: My Term Metabox
      Description: My cool new metabox
      Taxonomy: category
      Capability: manage_options
      Locked: true
      New: true
      Collapse: true
      */
       
      // Let's create a text box field
       piklist('field', array(
         'type' => 'text'
         ,'field' => 'field_name008'
         ,'label' => __('Example Field')
         ,'description' => __('Field Description')
         ,'attributes' => array(
           'class' => 'text'
         )
       ));
       ?>

      But field is not showing during creation of a new category. When I make New: false, it starts showing while editing a category, but what should I do if I want to show it during new category creation? I have attached an image to understand it better.

      Hozefa

      Attachments:
      You must be logged in to view attached files.
    • #4871
      Steve
      Keymaster

      Term fields do not show up for new terms. We didn’t implement because the area WordPress leaves doesn’t have enough room for some Piklist fields.

    • #4875
      hozefasmile
      Member

      Hi steve,

      But if you for example look at woocommerce plugin, they provide category thumbnail for there product category during new category creation. Its a wordpress inbuild feature and there is also a simple plugin created for it in wordpress repository https://wordpress.org/plugins/wp-category-meta/

      It will be a valuable thing at category term creation, for example suppose we are creating quizes, some quizes will have negative marking and some will have no negative marking, so we can put a check box during quiz creation that should we want to allow negative marking for that particular quiz or not. I know we can do this at edit screen also but it will be a double step of saving that same category.

      Thanks
      Hozefa

    • #4883
      Steve
      Keymaster

      Understood. We marked this as a feature request. Will look into it after v1.0 is out.

Viewing 3 reply threads
  • The topic ‘Term meta box fields not showing in category creation’ is closed to new replies.