Query featured events
-
Hi. I am trying to query featured events on my homepage. Here is what my query looks like. When I add the ‘tax-query’ argument, the query doesn’t return anything. If I remove it, I get all the events. What’s wrong with my query ?
<?php $events = tribe_get_events( array( 'tax_query' => array( array( 'taxonomy' => 'tribe_events_cat', 'field' => 'slug', 'terms' => 'featured', 'operator' => 'IN' ), ), 'posts_per_page' => -1 )); ?>
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Query featured events’ is closed to new replies.