- This topic has 3 replies, 2 voices, and was last updated 6 years, 3 months ago by
Steve.
-
AuthorPosts
-
-
November 4, 2015 at 6:47 am #4856
hozefasmileMemberHi,
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. -
November 4, 2015 at 11:28 pm #4871
SteveKeymasterTerm 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.
-
November 5, 2015 at 1:04 am #4875
hozefasmileMemberHi 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 -
November 5, 2015 at 5:04 pm #4883
SteveKeymasterUnderstood. We marked this as a feature request. Will look into it after v1.0 is out.
-
-
AuthorPosts
- The topic ‘Term meta box fields not showing in category creation’ is closed to new replies.