Forum Replies Created
-
AuthorPosts
-
Toomas
Participantstrange, but it doesn't work. If I activate this, I can't set any other taxonomy's terms either.
Toomas
ParticipantI'm still just curious if there is a workaround to set terms with
taxonomy_advancedfield?Toomas
ParticipantYeah, but taxonomy_advanced doesn't set the terms:(
Toomas
ParticipantOK, but can you tell me how to solve the problem if I have a hierarchical taxonomy field with select tree and I want to set several terms (together with the children) to the post?
Toomas
ParticipantHi,
any news about that?
Toomas
ParticipantAny idea, how it could be accomplished with some other way or plugin?
Toomas
ParticipantThanks, it works now! I guess I will keep the plugin.
Best regards,
ToomasToomas
ParticipantMy custom fields code:
add_filter( 'rwmb_meta_boxes', 'your_prefix_register_meta_boxes' ); function your_prefix_register_meta_boxes( $meta_boxes ) { $meta_boxes[] = array ( 'title' => 'books', 'id' => 'books', 'post_types' => array( 0 => 'post', 1 => 'books', ), 'context' => 'side', 'priority' => 'high', 'fields' => array( array ( 'id' => 'taxonomy_2', 'type' => 'taxonomy', 'name' => 'Taxonomy Field', 'taxonomy' => 'books', 'field_type' => 'select_tree', ), ), ); return $meta_boxes; }Toomas
ParticipantHello,
no it doesn't work, no difference. I just can't set taxonomy terms to posts via Metabox custom fields. Without using Metabox I can set them. Where do I need to put this code exactly? I pasted it into my theme's functions.php file and also tried Code Snippets plugin. It didnt make any difference. Since I'm not a coder I need some help in understanding your code. What "location" in your code means? "Taxonomy_2" is the name of a custom taxonomy field?
Best regards,
ToomasToomas
ParticipantHello,
CPT-onomies make custom posts act as taxonomies. When I create taxonomy field with the metabox builder, while editing post, I just can't set custom taxonomies (created with CPT-onomies) to the posts. But if I create custom taxonomies with the metabox custom taxonomies plugin, then custom fields are nicely set. MB Relationships makes things too complicated, I just want to set custom taxonomies to the posts.
Thanks
Toomas -
AuthorPosts