First the code: function itsme_better_editions( $query ) { if ( $query->is_category() && $query->is_main_query() ) { […]
Tag: terms
Query set using tax_query with relation ‘OR’ modifies category object?
(Update: Please see the edits far below.) The code: function itsme_better_editions( $query ) { if […]
When to use ‘get_category_by_path’ vs. ‘get_term_by’ to get category object from `get_query_var( ‘category_name’ )`?
I’d like to retrieve the category object from the category name, using the public query […]
Term begins with a letter
I had a template that relied on $terms = get_terms( “ingredient”, array( ‘name__like’ => $letter […]
get_the_term_list – Return links to edit.php instead of link to taxonomy archive template
I would like to use get_the_term_list or another function if it exists to return links […]
List post from current taxonomy children
I have a custom post type and a taxonomy with children, with a template file […]
List only first-level children of specific custom taxonomy term
I have a site set up with the following: Post Type: product Taxonomy: product_cat Taxonomy […]
Add term to custom post type on draft
I’m trying to automatically add a custom taxonomy term to custom post type when the […]
Get value in custom field with taxonomy
I have custom field my_cf for Taxonomy/Term. How can I get and output value with […]
PHP Code to Display Term URL & Name of a Post Under a Custom Post Type
I am featuring a post in my footer(outside the loop) from a custom post type […]
No More Posts Available.
No more pages to load.