Events+ pagination not working

I'm having trouble getting Events+ to paginate.

The default Events+ archive page is at: http://dredgepress.com/events. It displays this month's events but doesn't show any pagination links.

I made a events list page with shortcode at: http://dredgepress.com/list-events/ The page uses this shortcode: [eab_archive paged="true" limit="4" lookahead="true" weeks="52"] This page shows pagination links but they don't call new records even though you can see that the url has changed to show the page number.

I made a calendar page at http://dredgepress.com/calendar-events/ This page uses the shortcode: [eab_calendar navigation="true"] The calendar pagination works properly.

The site also uses the Q&A and MarketPlace plugins. Both of these paginate effortlessly.

I tried changing out the theme for twentytwelve to eliminate the theme as a possible source of conflict but it didn't help so I changed it back.

I would really like to get the Events+ pagination to behave. Any ideas?

  • joe
    • Site Builder, Child of Zeus

    Yay! found the answer:

    I added this line:

    'format' => '?page=%#%',

    into to this function:

    public static function get_pagination ($permalink, $total, $current) {
    
    $pagination = paginate_links(array(
    			'base' => "{$permalink}%_%",
    			'format' => '?page=%#%',
    			'total' => $total,
    			'current' => $current,
    		));
    		return "<div class='eab-pagination'>{$pagination}</div>";
    	}

    in the class_eab_template.php file

  • Patrick
    • Support Monkey

    Hey there @joe

    I hope you're well today, and happy new year!

    Yep, that is confirmed on my test install too: the paged="true" parameter in the eab_archive shortcode results in a URL like this:
    http://domain.com/events-page/page/2/

    ...which does not advance the display to show more events.

    Adding your fix to class_eab_template.php results in a URL like this:
    http://domain.com/events-page/2/

    ...which does indeed advance the display properly to show more events.

    Thanks for bringing this issue to our attention and for sharing the fix you found for it. I've notified the developer so he can include it in the next update.

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.