0
votes
0answers
136 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'); ...
1
vote
1answer
238 views

Get posts inside Get terms problem

i have a get_terms which loads correctly. inside of it i have used get_posts. then using get posts i am trying to get each post tags (and count <= not currently inside this script) <?php ...