WordPress.org

Ready to get started?Download WordPress

Forums

Event Organiser
[resolved] Only show one event category in the loop? (2 posts)

  1. sgreve
    Member
    Posted 2 years ago #

    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/

  2. sgreve
    Member
    Posted 2 years ago #

    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(); ?>

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.