[Plugin: Event Organiser] Somewhere in 1.5.x the archive-events.php template stopped working
-
Not sure why I didn’t notice this sooner, but I’m running three sites with Event Organiser, and I’ve recently updated each of those to either 1.5.4 or 1.5.5. I also updated to WordPress 3.4.2 but I don’t think that’s a factor here, though I could be wrong…
On each of those three sites the Events page that is using archive-event.php (my modified version) as a page template is no longer displaying any events. What it is displaying is the word “Events” as a link to nowhere, “Date:” and “Time” empty, and a link to “Event Details” that also goes nowhere.
In 1.4.2 the events were displayed correctly and pagination worked well.
I’ve been working on one of the sites and have integrated a new WP_Query into the loop, and now the events are displaying, but pagination isn’t working. I’ve been working on the pagination for a few hours now with no results.
Here’s the query code I added:
<?php $paged = (get_query_var('page')) ? get_query_var('page') : 1; ?> <?php $event_archive_query = new WP_Query( 'post_type=event&posts_per_page=2&paged='.$paged ); ?>
and my loop looks like:
<?php if ( $event_archive_query->have_posts() ) : while ( $event_archive_query->have_posts() ) : $event_archive_query->the_post(); ?>
So what I’m wondering is, did something happen from 1.4.2 to 1.5.x that broke archive-event.php, and now that I’m using WP_Query, what will I need to change or do to get pagination working in the event archive?
Thanks,
John
- The topic ‘[Plugin: Event Organiser] Somewhere in 1.5.x the archive-events.php template stopped working’ is closed to new replies.