WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Plugin: The Events Calendar] Multiple Events.

[Resolved] [Plugin: The Events Calendar] Multiple Events.

Viewing 1 replies (of 1 total)
  • Hey WebDevB,

    To accomplish this you would want to setup a custom query (or two) in the single event view (/wp-content/plugins/the-events-calendar/views/single.php).

    Here is an example of a query you could run:

    <ul class="generic">
          <?php
    
          $args = array(
              'post_status'=>'publish',
              'post_type'=>array(TribeEvents::POSTTYPE),
              'posts_per_page'=>1,
              'orderby'=>'title',
              'order'=>'ASC'
          );
          $get_posts = null;
          $get_posts = new WP_Query();
    
          $get_posts->query($args);
          if($get_posts->have_posts()) : while($get_posts->have_posts()) : $get_posts->the_post(); ?>
    
            <li>
              <?php the_title(); ?>
            </li>
    
          <?php
            endwhile;
            endif;
            wp_reset_query();
          ?>
        </ul>

    Does that help?

Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] [Plugin: The Events Calendar] Multiple Events.’ is closed to new replies.