Questions tagged [multi-taxonomy-query]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
1 answer
32 views

WordPress Two Level Filters on Getting Custom Taxonomy Terms

I have a Custom Post Type Called movie and I have two taxonomies genre and quality associated with that. Now I need to get/filter all terms IF genre = 'action' AND quality = 'HD' Using this code I ...
Behseini's user avatar
  • 525
0 votes
0 answers
168 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 ...
Michelle's user avatar
0 votes
0 answers
144 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.) ...
cloudinstone's user avatar
0 votes
0 answers
679 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 ...
Victor Sokoliuk's user avatar
0 votes
1 answer
351 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 ...
user avatar
0 votes
1 answer
250 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 ...
sandra nanou's user avatar
1 vote
2 answers
757 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: ...
Atimmy's user avatar
  • 45
0 votes
0 answers
90 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 ...
Atimmy's user avatar
  • 45
1 vote
2 answers
145 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 ...
JakeParis's user avatar
  • 653
0 votes
1 answer
380 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 ...
Tristissya's user avatar
0 votes
1 answer
136 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 ...
panaeleous's user avatar
0 votes
0 answers
123 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 ...
Gavin's user avatar
  • 339
0 votes
0 answers
20 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
back2life azahar's user avatar
0 votes
1 answer
63 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-...
HAL2020's user avatar
  • 39
0 votes
1 answer
161 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', '...
aitor's user avatar
  • 605
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 ...
John McCulley's user avatar
0 votes
1 answer
180 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. ...
ErfanMHD's user avatar
3 votes
1 answer
42 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 ...
Miiaru's user avatar
  • 31
1 vote
1 answer
1k 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 ...
tpsReports's user avatar
0 votes
1 answer
628 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 ...
saq's user avatar
  • 28
0 votes
0 answers
552 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 ...
Emge's user avatar
  • 1
0 votes
1 answer
211 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 ...
JudeAinsly's user avatar
0 votes
1 answer
176 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 ...
thetwopct's user avatar
  • 251
1 vote
1 answer
126 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 ...
Marshall Fungai's user avatar
0 votes
1 answer
507 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 ...
Kaye O'Malley's user avatar
0 votes
1 answer
179 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.: ...
kenshin23's user avatar
0 votes
1 answer
182 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-...
Karls's user avatar
  • 49
5 votes
1 answer
4k 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 (...
Louis S's user avatar
  • 156
1 vote
1 answer
111 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 ...
Neelam Khan's user avatar
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 ...
user7193478's user avatar
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. ...
RealSollyM's user avatar
0 votes
0 answers
396 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 ...
MikeiLL's user avatar
  • 559
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 ...
boorock's user avatar
  • 61
1 vote
0 answers
2k 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 ...
Alan McGinnis's user avatar
1 vote
0 answers
48 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 ...
user116333's user avatar
1 vote
3 answers
5k 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 ...
Monk's user avatar
  • 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 ...
NW Tech's user avatar
  • 717
1 vote
2 answers
76 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, ...
Gecko Boy's user avatar
1 vote
1 answer
2k 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 ...
Jay's user avatar
  • 31
0 votes
1 answer
780 views

Custom taxonomy and query multi conditions

I have this query $query->set( 'tax_query', array( 'relation' => 'OR', array( 'taxonomy' => 'location', ...
Bashar Gh's user avatar
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 ...
tom's user avatar
  • 25
1 vote
0 answers
233 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 ...
Sanjay Nakate's user avatar
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( ...
Sanjaya Dulal's user avatar
2 votes
2 answers
989 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 ...
Mark's user avatar
  • 21
3 votes
1 answer
285 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 ...
Thomas's user avatar
  • 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 ...
Moisés Benicio's user avatar
1 vote
1 answer
148 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 ...
Pete's user avatar
  • 317
0 votes
1 answer
289 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 ...
falrod's user avatar
  • 1
10 votes
3 answers
49k views

How to add images to taxonomies?

Q: Is it possible to add images to all of my taxonomies (default and custom ones)? Note: I do not want to use any plugins (not my favourite solution for design related matters). Usage: I want to ...
nerijusgood's user avatar
1 vote
1 answer
1k views

Add_query_arg + two times the same argument?

I'am trying to filter my archive page by clicking links. When clicked they execute the add_query_arg command. Everything works fine so far. But now i want to add combinations within the same ...
AnC's user avatar
  • 168