Sort order by slug for looped child terms of custom taxonomy
Sort order by slug for looped child terms of custom taxonomy
Sort order by slug for looped child terms of custom taxonomy
Extend & Search Native WordPress Image Galleries With Tags and Taxonomies?
The meta_key is used to reference a field for a post type, i dont think it will reference the taxonomy of a post type. Check this out, this may be what you are trying to accomplish: https://wpshout.com/sort-posts-taxonomy-terms/
Thanks to @Milo for the solution. I deleted all the defaults to condense the code, and then changed the ‘meta_box_cb’ parameter to ‘post_categories_meta_box’, and it did indeed give me a tag-style metabox. As an aside, that’s not exactly what I envisioned, so I ended up using CMB2‘s taxonomy_radio field to get what I was after … Read more
How to show all possible parents and children of a hierarchical taxonomy term?
OK, so you’ve used / as you taxonomy slug. It means that URL for your term is: http://example.com/my-sample-taxonomy-term/ And for pages it will be: http://example.com/my-sample-page/ As you can see, there is no way to guess, what type of post should WP search for. WordPress processes the URLs looping through registered Rewrite Rules and matching given … Read more
Custom taxonomy query is empty. 0 = 1 in SQL
Querying by postmeta is very inefficient, so for a site with many posts, you’re likely to run into issues. In this type of situation you’re almost always better off creating custom taxonomies. Taxonomy queries are much less demanding and scale better on larger sites.
Return terms from multiple taxonomies using $wpdb
Get taxonomy based on another taxonomy slug