Questions tagged [multi-taxonomy-query]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
36 views

Exclude taxonomy term from list of current taxonomy terms

I am trying to display a list of custom taxonomy terms for the current page, but do not know how to filter out specific terms. My code is below. How do I exclude certain taxonomy terms? I'm still ...
0 votes
0 answers
38 views

How to get post count of specific taxonomy that have store name & category

I am new in php and trying to learning php. I have taxonomy called dealstore. I have added one store name "Amazon" and two categories name "coupons and electronics". Now, I want to ...
  • 1
0 votes
0 answers
21 views

How to get related taxonomies based on a category with mysql query?

I have a lot of custom taxonomies for my WordPress site. What I want to do is to Get Related Custom Taxonomies based on a Category. Sample Structure: (Material, OS and Features are Custom Taxonomies.) ...
0 votes
0 answers
23 views

How do I compare the value of two taxonomies in a wp_query

How do I, in a wp_query, get all the posts where 2 taxonomies do not have the same values? for example i have a taxonomy of widths and one of heights and I want to, for one query, pull all the posts ...
0 votes
0 answers
23 views

Custom taxonomy: on the taxonomy term page show other taxonomy terms

ok, i have a custom post type LAW and two taxonomy LAW TYPE and EDITION I create a page taxonomy-law_type.php for display child terms LAW TYPE <ul class="wpb_page_list"> <?php $...
0 votes
0 answers
275 views

How to filter custom post type by multiple Taxonomies

On the project there is a filter: It should filter the custom post ty recipes. Selected items are checkboxes. So, several values for filtering can be selected at any time. But in my case, filtering ...
0 votes
1 answer
77 views

Show posts from two specific category in WP_Query

I've two category employee and full-time. If a post publish in both (employee and full-time) category then the post will show in his specific section. If post has only employee category, not full-time ...
's user avatar
0 votes
1 answer
56 views

Query all post and CPT from 2 specific taxonomies AND by ACF custom field

I need to build a complex query. I want to display all posts, and 2 different CPT posts in specific taxonomies. All of these posts need to have been checked to be displayed. The checkbox is added with ...
1 vote
2 answers
171 views

How to get custom taxonomy terms based on another taxonomy?

How to list out all the terms of a custom taxonomy that are relative in another custom taxonomy? I am creating a filter page for a CPT with multiple custom taxonomies. Please see the screenshot below: ...
  • 45
0 votes
0 answers
67 views

How to build a achieve page for a custom CPT with multiple taxonomy button filter

This is an extended question from Permalink for CPT with taxonomy I am building a website that has a CPT and a few custom taxonomies. Each single CPT post is basically "a question" for ...
  • 45
1 vote
2 answers
69 views

Formulate a url to show posts with both taxonomy terms

I would like to show an archive of posts that have two taxonomy terms in common. So for example, I'd like to show all posts that have both the terms "sauce" and "cheese" in the ...
  • 623
0 votes
1 answer
223 views

ACF multi taxonomy on filterable gallery

I created a filterable gallery with ACF. My problem is that when I add a project to which I add several taxonomies, in my gallery I have the project as many times as I have added taxonomies. Apart ...
0 votes
1 answer
107 views

WP Query by 4 different taxonomies

I need to make a shortcode that uses the values of four different taxonomies. I am trying to modify code that I have used to query attachments (in media) based off of multiple taxonomy terms, but ...
0 votes
0 answers
59 views

Get custom taxonomy terms that contain posts that have another taxonomy term

I have two taxonomies for my property post type: property-style which has terms for different home styles like "Country" and "Modern", and property-tag which has terms for ...
  • 277
0 votes
0 answers
18 views

How to limit number of category term display in home page grids?

I want to limit the number of categories to be displayed on girds to be 4 or something like clickable to expend all. but this should not be the effect on single post page. Thanks
0 votes
1 answer
60 views

Custom Taxonomies Archive Page 404

I used the "Custom Post Types UI" and "Custom Fields" plug-ins to set up my structure. I have a custom post type called "artwork". This works fine. Posts have URLs like domain.cc/artwork/title-of-...
  • 39
0 votes
1 answer
140 views

simple tax_query intersection

I'm trying to do tax_query for posts that have a term1 in taxonomy1 AND a term2 in taxonomy2 if I do: 'tax_query' => [ 'relation' => 'AND', [ 'taxonomy' => 'taxonomy1', '...
  • 495
1 vote
0 answers
29 views

Taxonomies on custom taxonomies

I have a custom post type with multiple custom taxonomies. I need those taxonomies to have a relationship as well. The trick is, I need a child to be able to have multiple parents. I understand that ...
0 votes
1 answer
153 views

list all post who have mutual taxonomy as current taxonomy!

I have app archive site with two different taxonomy type: Seller and Kind, I want to have a page for every seller and inside that page, I want to have multiple lists for every term of "Kind" taxonomy. ...
3 votes
1 answer
41 views

Counting number of posts with Category B in Category A

I'm currently building my own backlog tracker and have gotten to a point where I just have no idea how I'm going to do this. I have multiple status categories (for example; beaten and completed) and ...
  • 31
1 vote
1 answer
850 views

How do I search WordPress by different fields without a plugin?

I'm building my own WordPress theme, and I would like for my search queries to search posts by keywords in the title, categories, tags, and content. As of now, I believe that my theme is only ...
0 votes
1 answer
455 views

Get All Taxonomy Terms From Get_terms Array With Specific Array Key

I have below code to extract all terms from multiple taxonomies, $taxonomies = array('ingredients','category','course'); $args = array( 'hide_empty' => 0 ...
  • 28
0 votes
0 answers
456 views

Query Multiple Taxonomies and Multiple Terms with Different Operators

I am attempting to find related custom post types that share at least one term in taxonomy A and at least one term in taxonomy B. So it is sort of taxonomy A AND taxonomy B but OR within the terms of ...
  • 1
0 votes
1 answer
165 views

Wordpress multiple loops with default pagination

I'm trying to list advertisers in 3 categories (custom taxonomy "ad_category") as basic, casual and premium. As default query one page contains 10 results but it should be in order to display premium ...
0 votes
1 answer
150 views

Taxonomy archive, categorised by other taxonomy, not hiding empty taxonomies

Info about my setup: I have a custom post type called 'Treatments' Each treatment is categorised in to up to 3 taxonomy types - treatment categories - 'beautysalon' 'skinclicnic' 'spadays' and these ...
  • 221
1 vote
1 answer
88 views

Retrieve Custom Taxonomies according to posts selected

I have 3 custom taxonomies. The first 2 are for car make and model, the 3rd is for car series. The goal is make a widget which lists car series' depending on current post (make and model). function ...
0 votes
1 answer
431 views

Multiple Taxonomy post query with exclusion

I have multiple taxonomies for a custom post type ('product') and I would like people to select from the list whether they want to include one or more of the terms and if they want to exclude one or ...
0 votes
1 answer
160 views

Secondary WP_Query being overriden in archive page

I'm running into a particular problem with an archive page. This particular page is supposed to list all post that belong to a category, but is able to be filtered by a second (custom) taxonomy: i.e.: ...
0 votes
1 answer
168 views

Complex Taxonomy scheme

We are building a resorts site and we're facing a huge taxonomy problem. On one side, we have administrative locations such as country>>region>>department and "natural" locations, such as mountain-...
  • 39
5 votes
1 answer
3k views

Filter posts by multiple custom taxonomy terms using AND operator in REST API v2 (WordPress)

I've created a custom post type called 'events'. I've also created a custom taxonomy called 'event_categories' containing the 12 months of the year. I am trying to get 'events' held in August AND (...
  • 146
1 vote
1 answer
78 views

How do I display the grand child items of a taxonomy term?

I am trying to display the grand child terms for a custom taxonomy term. The main parent taxonomy term is product_range, the child taxonomy term is Mechanical Trackballs, each child category has ...
0 votes
1 answer
1k views

WP Tax query & order by tax query not working

I have subcategories(custom taxonomy).I want to fetch all products of that category in one table & then other category name & it's table. To achieve this,I grouped by & ordered by custom ...
0 votes
0 answers
21 views

Multiple Wordpress Sites, Same Database but Filtered Content

I have been given a task to create Wordpress sites which will share the same database but filter content based on the domain... Basically we will be creating news portals across provinces/states. ...
0 votes
0 answers
338 views

Combine Tax Archive and Meta_Query in WP_Query

Is there a way to instantiate a WP_Query object—filtered by post_meta and taxonomy_meta—within the loop of which I can have access to both post and taxonomy-archive methods (like the_excerpt and ...
  • 539
2 votes
1 answer
51 views

Related Tags Concept

On search results pages I would like to show a tag list collected from other posts that are listed for the seach result. // same tag should not be listed twice And for the taxonomy pages again; tags ...
  • 61
1 vote
0 answers
1k views

Custom Post Type Loop with Query Var

Goal: Loop through custom post type (insurance products) and get only insurance types for that state based on a query var. Post type: insurance_products Taxonomies: state, insurer, insurance-type I ...
1 vote
0 answers
46 views

Full Custom Post Type List Organised by two Taxonomies

I need to list out a custom post type organised by two different taxonomies on these posts. I have a custom post type of properties with taxonomies of location and size and am trying to list them out ...
1 vote
3 answers
4k views

Filter custom posts by multiple taxonomies

Im working with custom post types - named 'Products' I have multiple taxonomies registered - 'Category' and 'Dosage' And I'm trying to setup pages that only display custom post types 'products' IF ...
  • 61
1 vote
2 answers
107 views

Creating a multi-taxonomy query, excluding the newest (read: highest ID) taxonomy term

Apologies if this has been asked before, but I couldn't find, specifically, another question that gets me going in the right direction. I'm creating a series of multiple loops on a page. I also ...
  • 717
1 vote
2 answers
75 views

Using a checklist to search against metadata

I'm completely stuck and would very much appreciate some pointers/advise. The problem: I want to create a search function that will let me filter Japanese onsen by their amenities, e.g. parking, ...
1 vote
1 answer
1k views

Combining categories (Query posts with multiple taxonomy terms)

I'm attempting to display a list of all posts from multiple categories (if anyone answers this, you might want to include combining tags as well, as probably that will make this answer comprehensive ...
  • 31
0 votes
1 answer
753 views

Custom taxonomy and query multi conditions

I have this query $query->set( 'tax_query', array( 'relation' => 'OR', array( 'taxonomy' => 'location', ...
2 votes
1 answer
2k views

Taxonomy , subtaxonomy,child taxonomy of a product woocommerce

Hi i need to get the main taxonomy and sub taxonomy of a product in woocommerce . i know how to get taxonomy details .123 is product id . $terms = get_the_terms(123, 'product_cat'); I know how to ...
  • 25
1 vote
0 answers
224 views

Combine multiple custom user taxonomy in single url

I have created custom user taxonomy for user and its working good. Reference guide:- http://justintadlock.com/archives/2011/10/20/custom-user-taxonomies-in-wordpress Bellow is structure of taxonomy ...
0 votes
2 answers
133 views

I have custom post type with custom taxonomy. But not found the taxonomy page..

this is my link. http://redesign.conei-sa.com/apps_cat . not found . My code in function.php. function prefix_register_post_type() { register_post_type( 'application', array( ...
1 vote
2 answers
863 views

Adding multiple taxonomy filters to functions.php

I need to add multiple taxonomy filters to the functions.php file to remove (3) irrelevant taxonomies from the Yoast SEO sitemap index. I have been able to successfully add one filter, but when I add ...
  • 11
3 votes
1 answer
279 views

SQL Statement generated by WP_Query not producing expected results

I am trying to alter WP_Query on the pre_get_posts action hook, for filtering the posts returned, depending on the built-in category and post_tag taxonomies. I would like that the only posts returned ...
  • 31
0 votes
1 answer
1k views

Group Custom post type in a taxonomy page by its child taxomony

I hope you can help me, guys. I've create custom post type and custom taxonomy with Custom Post Type UI plugin. Then i create an page taxonomy-mycustomtaxonomy.php. When i access, for example, a url ...
1 vote
1 answer
142 views

How do I taxonomy terms based on terms they are used alongside?

How do I get all of a single taxonomies terms that have one or more particular sibling terms? For example, let's say I have the following taxonomies. Terms are listed underneath the taxonomies, and ...
  • 317
0 votes
1 answer
282 views

Custom query to order by multiple taxonomies

I got this website from a customer to fix some bugs. They are a car dealership. The previous developer created a custom post type (vehicle) and there are two taxonomies: make and model. (they are not ...
  • 1