Tagged: term_meta
- This topic has 7 replies, 2 voices, and was last updated 7 years, 4 months ago by
Steve.
Viewing 7 reply threads
-
AuthorPosts
-
-
September 1, 2014 at 11:15 am #2360
baarMemberHi everyone,
I want to add taxonomy terms and taxonomy term meta data in the “add new” screen.
It’s working great at the Taxonomy add / edit page.
/* Title: More Informations Taxonomy: text_from Order: 0 */ piklist('field', array( 'type' => 'text' ,'field' => 'birthdate' ,'label' => __('Birthdate') ,'description' => __('Enter date of birth.') ,'value' => 'DD/MM/YYYY' ));Now I want to display 2 fields in the “add new” screen.
I’ve tried the following:/* Title: Taxonomies Post Type: cpt Order: 20 Priority: default Collapse: false */ // This one here is working as it should piklist('field', array( 'type' => 'radio' ,'scope' => 'taxonomy' ,'field' => 'text_from' ,'label' => 'From Author etcs' ,'description' => 'Author etc....' ,'choices' => piklist( get_terms('text_from', array( 'hide_empty' => false )) ,array( 'term_id' ,'name' ) ) )); // Here I dont know how to set the right scope ( I thinks it's term_meta ) // I also dont know how to tell piklist which term's term meta should be addressed piklist('field', array( 'type' => 'text' ,'scope' => 'term_meta' ,'field' => 'birthdate' ,'label' => __('Birthdate') ,'description' => __('Enter date of birth.') ,'value' => 'DD/MM/YYYY' ));Thanks in advance
-
September 1, 2014 at 2:51 pm #2361
SteveKeymaster@barr- due to the way the WordPress new term screen is setup we have disabled the ability to add fields on term creation. Many of our fields didn’t layout properly.
-
September 1, 2014 at 5:03 pm #2362
baarMemberSorry didn’t make my self clear enough.
I want to add these fields to this page => “post-new.php?post_type=cpt”
So I can build a workflow, exp:
– Add Post Title and Post Content
– Assign existing terms– Create terms
– Create term_meta– publish post
-
September 2, 2014 at 11:32 am #2363
-
September 2, 2014 at 11:49 am #2364
baarMemberYes, birthdate data and text_from data.
-
September 2, 2014 at 1:02 pm #2365
-
September 2, 2014 at 1:22 pm #2366
baarMemberThank you so much!
-
September 29, 2014 at 1:43 pm #2494
-
-
AuthorPosts
Viewing 7 reply threads
- You must be logged in to reply to this topic.