Hi there,
I’m using the list loop template (views/list/loop.php) to get a list of events (based on the PostPerPage Limit I have set in the settings).
But now, I want to give this list some arguements, to filter this list manually by etc. current month, or post per page limit. The structure is this:
<?php
$current_month = date('M');
query_posts(array('post_type' => 'tribe_events', 'posts_per_page' => 10, 'month' => $current_month));
?>
<?php while (have_posts()) : the_post(); ?>
<?php the_title(); ?>
<?php endwhile; ?>
However, this is not working. Someone has an idea, how to realize this?
Thank you!