The tax-query tag has no wiki summary.
0
votes
1answer
73 views
Custom Query Arguments
I want to run a query base on the following $args. My question that how to pass variable number of arrays to tax_query as currently i have two arrays within tax_query it can be 1 , 3 or 5 and so on. ...
0
votes
1answer
407 views
search query within custom taxonomy term, post title and meta field
I want to create a search that does:
Search within my custom taxonomy - custom-tags
search the post title
search select meta field ?? dont know
search with custom post type - easy part
I looked ...
0
votes
1answer
138 views
Using tax_query creates a 1 = 0 or 1 = 1 in $wp_query->request
This is my first attempt at modifying the main query using the pre_get_posts action/filter
This is the function currently hooked to it:
function advanced_product_search_filter($query)
{
...
0
votes
0answers
47 views
How to exclude child terms from tax query foreach loop
I have this query which is working fine but I can not get it to exclude child terms and include only parent terms. This is what I have so far --
<?php
$custom_terms = get_terms('videoscategory');
...
0
votes
0answers
87 views
tax_query with OR relation not working
I've got a custom post type for training courses. For those courses I've got taxonomies of "qualification-level", "training-country" and "worker-cardre".
I'm trying to retrieve posts based on a ...
-1
votes
0answers
44 views
Two exact same queries returning different results
I figured it out. It was in the way I was creating the variable for terms. The working code is below. Where $VAR is a comma separated list of ids. The only problem is that this method also inserts ...