function eventbrite_get_eventblocks() { // Set up and call our Eventbrite query. $events = new Eventbrite_Query(apply_filters('eventbrite_query_args', array('display_private' => true, 'nopaging' => true, 'privacy_setting' => 'unlocked', 'show_future' => false))); $blockstring = ""; if ($events->have_posts()) { while ($events->have_posts()) { $events->the_post(); $blockstring .= eventbrite_get_eventblock(); } // Previous/next post navigation. //eventbrite_paging_nav( $events ); } else { // If no content, include the "No posts found" template. get_template_part('content', 'none'); } // Return $post to its rightful owner. wp_reset_postdata(); return $blockstring; }
the_title(); ?> </h1> </div> </div><!-- .hero --> <div class="content-wrapper clear"> <div id="primary" class="content-area"> <main id="main" class="site-main" role="main"> <?php // Set up and call our Eventbrite query. $events = new Eventbrite_Query(apply_filters('eventbrite_query_args', array())); if ($events->have_posts()) { while ($events->have_posts()) { $events->the_post(); ?> <article id="event-<?php the_ID(); ?> " <?php post_class(); ?> > <header class="entry-header"> <?php the_title(sprintf('<h1 class="entry-title"><a href="%s" rel="bookmark">', esc_url(get_permalink())), '</a></h1>'); ?>