Questions tagged [multi-taxonomy-query]

The tag has no usage guidance.

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

Output Term List and Respective Term Slug from Multiple Taxonomies

Complete original code renders 'category' terms with link. My modifications to the original renders 'category' terms with link but does not link out parent nor children of 'genre' (they render okay). ...
0
votes
1answer
30 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
0answers
9 views

Arranging products in Custom Taxonomy Archive by Category with new WP_Query

I'm using a shortcode and thus using a new Wp_Query - but If I could do it with pre_get_posts in a shortcode I'd also be happy. On a custom taxonomy page "range" I need to group products by ...
0
votes
1answer
36 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
0answers
21 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 ...
0
votes
0answers
45 views

Related posts ordered by taxonomy

On my single post page, I display 4 related posts based on 3 custom taxonomies products, artists, and product-category. Everything works fine with the code below. BUT: Right now, with this code, the ...
0
votes
0answers
14 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
0answers
19 views

List specific field of specific taxonomy

I have a custom post type "artwork". Every "artwork"-post has custom fields that are connected to taxonomies: "Artist" (Who's the designer), "Movie" (which movie the artwork is for), and "Agency" (the ...
0
votes
1answer
46 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-...
0
votes
1answer
71 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', '...
1
vote
0answers
26 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
1answer
84 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
1answer
38 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 ...
1
vote
1answer
394 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
1answer
337 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 ...
0
votes
0answers
268 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 ...
0
votes
1answer
106 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
1answer
96 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 ...
1
vote
1answer
57 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
1answer
339 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
1answer
106 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
1answer
124 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-...
5
votes
1answer
2k 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 (...
1
vote
1answer
42 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
1answer
929 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
0answers
18 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
0answers
271 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 ...
2
votes
1answer
50 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 ...
1
vote
0answers
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
0answers
45 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
3answers
3k 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 ...
1
vote
2answers
100 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 ...
1
vote
2answers
71 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
1answer
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 ...
0
votes
1answer
703 views

Custom taxonomy and query multi conditions

I have this query $query->set( 'tax_query', array( 'relation' => 'OR', array( 'taxonomy' => 'location', ...
2
votes
1answer
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 ...
1
vote
0answers
206 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
2answers
131 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
2answers
678 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 ...
3
votes
1answer
270 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 ...
0
votes
1answer
852 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
1answer
136 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 ...
0
votes
1answer
251 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 ...
9
votes
3answers
41k 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 ...
0
votes
1answer
881 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 ...
0
votes
1answer
3k views

Grab all Custom Posts by multiple taxonomies and terms

I have 4 custom taxonomies with multiple terms for a "Members" page. I have a taxonomy of "location" and "organize" that I'm trying to separate into a list. I need to grab all posts by the "aba-...
1
vote
1answer
276 views

Modify users.php query with multiple taxonomies

I've successfully created 3 taxonomies attached to the user object, using the registered_taxonomy and update_count functions of this code - https://gist.github.com/portfola/10750784#file-user-...
0
votes
1answer
701 views

Multiple taxonomies, what should the permalink look like?

I need to implement a list of a custom post_type that has to be able to filter them by two taxonomies, I found this answer that helps out with the wp_query syntax My question is, now, how should the ...
0
votes
1answer
212 views

How to List Custom Post Type Titles Based on Theirs Taxonomy Terms Inside a Nested Loop

I am trying to list at least the last three updated Custom Post Type's title lets call it "Cast" inside another loop which is listed based on the Taxonomy terms called "Actress" I used the following ...
0
votes
1answer
527 views

List terms of custom taxonomy if matches other taxonomy

So the title is confusing but I can't think of a better way to word it. Basically, I have two taxonomies of "state" and "city" (that have to stay separate for other reasons). Lets say for instance, a ...