Support » Plugin: Event Organiser » [Plugin: Event Organiser] Only show one event category in the loop?

  • Resolved sgreve

    (@sgreve)


    Hello!

    I know adding events to the main loop was recently discussed, but I wanted to know if it’s possible to only show events from one event-category in the loop?

    I’d love to include events in one of my frontpage loops, but I have 3 different event categories and only want to display one of them. Is this possible?

    http://wordpress.org/extend/plugins/event-organiser/

Viewing 1 replies (of 1 total)
  • Nevermind, this is just a case of RTFM on my part. Here’s my solution:

    <?php $ari_date = new WP_Query( array( 'event-category' => 'cat-slug' , 'numberposts' => 1 ));
    while ($ari_date->have_posts()) : $ari_date->the_post(); ?>
Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Event Organiser] Only show one event category in the loop?’ is closed to new replies.