Tagged Questions
0
votes
0answers
63 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
1answer
83 views
tax_query in get_posts() not working?
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 = get_terms('product_cat');, then i ...
1
vote
2answers
127 views
How to add terms to my tax_query based off of the current post
I need the terms in my tax_query to be the ones from the current post. I am trying to this by using a variable. The value of the variable is given by using the get_terms() function.
The problem is ...