Support

Home Forums Event Espresso Premium Pagination is missing on default template

Pagination is missing on default template

Posted: July 9, 2015 at 11:42 am


Joren

July 9, 2015 at 11:42 am

Hello, running EE4 4.6.26.p (will update once I get it on a production server). We just went past the 10 count limit on the first page of events listing, and no pagination was created. No links. I switched back to default Twenty Fifteen theme and the same thing. Looking at Espresso Arabica 2014’s default files, I do not really see any obvious pagination code in archive-espresso_events.php or content-espresso_events.php.

Either I’m missing something or the default EE4 theme files are missing pagination code. Help please, thanks!


Josh

  • Support Staff

July 9, 2015 at 12:10 pm

Hi Joren,

Unless you’re explicitly calling archive-espresso_events.php template from your theme, it’s not used, because Event Espresso does not use that template. It uses the active WordPress theme’s archive.php template instead.

The issue you’re seeing is likely coming from the customizations done earlier that were outlined in this thread:

https://eventespresso.com/topic/events-listcalendar-view/

Does your active theme have a copy of archive-espresso_events.php? If so, you can add a few WordPress pagination functions where you want pagination links to appear. Here’s a link that shows how to add pagination functions:

https://codex.wordpress.org/Pagination#Function_Reference


Joren

July 9, 2015 at 12:15 pm

Great, thanks, I assumed EE4 had it’s own pagination function that was missing, simply adding wordpress’ did the trick.


Josh

  • Support Staff

July 9, 2015 at 12:48 pm

You’re welcome. It turns out EE4 does have its own pagination function but it does not get used unless you copy the loop-espresso_events.php file into your WordPress theme.

The support post ‘Pagination is missing on default template’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso