Only 1 event displayed
-
Hi, I have added compatibility to my theme using the link you posted and everything seems to be working fine apart from only 1 event is showing and there are 10+ listed on the Eventbrite site.
Web url: https://www.businessfactorynt.co.uk/biz/seminars-and-events/
Events page: https://www.eventbrite.co.uk/o/the-business-factory-8665482722And this is the code used to display the events page:
<?php /** * Template Name: Eventbrite Events */ get_header(); $sidebar = mfn_sidebar_classes(); ?> <!-- Content --> <div id="Content"> <div class="container"> <!-- .content --> <?php if( $sidebar ) echo '<div class="content">'; while ( have_posts() ) { the_post(); get_template_part( 'includes/content', 'page' ); // Set up and call our Eventbrite query. $events = new Eventbrite_Query( apply_filters( 'eventbrite_query_args', array( // 'display_private' => false, // boolean // 'nopaging' => false, // boolean // 'limit' => null, // integer // 'organizer_id' => null, // integer // 'p' => null, // integer // 'post__not_in' => null, // array of integers // 'venue_id' => null, // integer // 'category_id' => null, // integer // 'subcategory_id' => null, // integer // 'format_id' => null, // integer ) ) ); 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_post_thumbnail(); ?> <?php the_title( sprintf( '<h1 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h1>' ); ?> <div class="entry-meta"> <?php eventbrite_event_meta(); ?> </div><!-- .entry-meta --> </header><!-- .entry-header --> <div class="entry-content"> <?php eventbrite_ticket_form_widget(); ?> </div><!-- .entry-content --> <footer class="entry-footer"> <?php eventbrite_edit_post_link( __( 'Edit', 'eventbrite_api' ), '<span class="edit-link">', '</span>' ); ?> </footer><!-- .entry-footer --> </article><!-- #post-## --> <?php endwhile; // Previous/next post navigation. eventbrite_paging_nav( $events ); else : // If no content, include the "No posts found" template. get_template_part( 'content', 'none' ); endif; // Return $post to its rightful owner. wp_reset_postdata(); } if( $sidebar ){ echo '</div>'; } else { echo '<div class="clearfix"></div>'; } ?> <!-- Sidebar --> <?php if( $sidebar ){ get_sidebar(); } ?> </div> </div> <?php get_footer(); ?>
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘Only 1 event displayed’ is closed to new replies.