How to get term by custom term meta and taxonomy or how to filter tax_query by term meta instead slug/id? function custom_pre_get_posts($query) { global $wp_query; if ( !is_admin() &&...
I’m trying to perform a dynamic query that uses a dynamically passed taxonomy and post_type, and displays results accordingly — A user makes a selection from 3 drop-downs on...
I’ve created a new query for a custom post type of ‘courses’. Those results are then to be filtered using tax_query, querying 3 custom taxonomies matching 1 or several...
I’ve been having a lot of trouble getting a WP_Query running with a tax_query on my custom taxonomy. I’m 99.9% sure that my register_taxonomy is correct, as I’m able...
I have a custom post type called portfolio and a custom taxonomy called build-type (acting as categories) I am trying to query portfolio posts by build-type ID e.g. all...
I’m trying to print out all the posts within every taxonomy for a custom post type called product (jigoshop products). So i get all of the taxonomies using $cats...
I have a custom post type of image with a custom taxonomy called image_tag (it’s hierarchical like categories). Here are some examples of the tags that might be used:...
I want to use the WP_Query() class to filter some of my posts. The problem I am facing now is handling the taxonomy query. Normally, the WP_Query() only handle...
I have a custom post type called ‘episode’. Attached to ‘episode’ I have a custom taxonomy called ‘video_type’ that contains two terms: “bonus-footage” and “episode”; “episode” contains two child...
I am curious whether WordPress is able to run nested meta_query, with each having different relation keys? As of WordPress 3.0, tax_query is able to perform this function; I’m...