Custom Taxonomy Not Working When added to WordPress Search
Custom Taxonomy Not Working When added to WordPress Search
Custom Taxonomy Not Working When added to WordPress Search
Custom Post, set object Taxonomy terms in plugin
I’m working on something similar at the moment. I’ve decided on using radio buttons or a dropdown to ensure a user has to pick from my taxonomy terms when creating their post. I’m still refinig my solution, but these two articles have helped me a lot: http://themefoundation.com/wordpress-meta-boxes-guide/ I want my metabox to appear in multiple … Read more
You can’t set a level when you create the taxonomy. The only way to enforce a level is by watching the term creation: Filter create_term; that’s the earliest filter that allows us to change parent term ID. For no obvious reasons the filter pre_insert_term is lacking that information … it would probably too easy. Then … Read more
Unexpected results from get_taxonomies() and {$taxonomy}_edit_form and related hook
CPTUI and add_rewrite_endpoint will help you get the desired things. [Update] From my comment- You need pairs for rewrite rule /base/1 or base/1/base2/2 using wordpress rewriting… and the way you want will not be that easy depending on wordpress. If you have fixed /custom/continent/country structure then add HTACCESS of your own as site/1/2/3 to yield … Read more
Redirect on saving term at custom taxnomy
You can hide them in the Screen Options dropdown (which is a per-user basis) if that’s what you’re looking for: You could also remove the metaboxes with remove_meta_box seen here: https://codex.wordpress.org/Function_Reference/remove_meta_box So depending on what the HTML ID of that custom box is, you could add a function. Let’s say Client Types is client-types, then … Read more
Register your taxonomy first and set the argument slug and rewrite rules to your slug which is city Register your post type with slug of your taxonomy city prefixed and make sure you set the has_archive argument to taxonomy. Now add a filter to post_type_link to make the stores show the individual permalink. register_post_type( ‘city’, … Read more
Make the countries a custom post type, set up taxonomies for continents (region parent) and the regions. Maybe you can even use just one taxonomy for both, but there is )was?) this weird case in WP, where it sees a difference between just child selected and child and parent selected. That setup makes you independent … Read more