Get the the top-level parent of a custom taxonomy term
How would I get the top-level parent of a given term? I am using wp_get_object_terms to get taxonomy terms on posts, but instead … Read more
How would I get the top-level parent of a given term? I am using wp_get_object_terms to get taxonomy terms on posts, but instead … Read more
By default WordPress orders custom taxonomies (as tags in this case) by alphabetical order not by the order they were entered in the … Read more
I’m really having a few issues with inserting terms. Here is my scenario: I have a taxonomy called veda_release_type: //Release Type and Region … Read more
I have 2 custom post types ‘bookmarks’ and ‘snippets’ and a shared taxonomy ‘tag’. I can generate a list of all terms in … Read more
i want to retrieve custom posts using using custom query . my taxonomy is recipe_tx and terms (Beef) , (Chicken) etc in it … Read more
Now that WordPress 4.4 is out, we can start using the new awesome term meta functions! Still, there seems to be no simple … Read more
I have two custom post types ‘country’ and ‘city’ and a shared taxonomy ‘flag’. If I use: <?php $flags = get_terms(‘flag’, ‘orderby=name&hide_empty=0’); I … Read more
Is there any way to get only parent terms from custom taxonomy or category? 5 Yes, just pass in the parent parameter to … Read more
Say I have the following taxonomy terms: Term 1 Term 1.1 Term 1.2 Term 2 Term 2.1 How can I get only posts … Read more
I was reading over some best practices from 10up and they mention setting these two flags to false in a WP_Query ( depending … Read more