Support

Home Forums Event Espresso Premium Event list with no pagination

Event list with no pagination

Posted: February 11, 2023 at 9:54 pm

Viewing 13 reply threads


KarenC

February 11, 2023 at 9:54 pm

Hi, I’ve set up the list of events with the shortcode
[ESPRESSO_EVENTS limit=50]
and we have less than 50 events. However, the page shows only 10 and there’s pagination to get to the rest of the events.

I’ve checked the WordPress Reading Settings and set both blog pages and syndication feeds to 50. That didn’t make a difference. What other settings to check please?


Tony

  • Support Staff

February 13, 2023 at 5:56 am

Hi there,

Can you link me to the page so I can take a look, please?


KarenC

February 13, 2023 at 3:19 pm

Sure Tony. This is one of them…
https://www.heartoflife.melbourne/seminars-and-reflection-events/upcoming-events/


Tony

  • Support Staff

February 14, 2023 at 5:55 am

Hmm, very strange.

So the limit attribute on the shortcode is passed to WP_Query as the post_per_page parameter and on my test sites, setting that to anything greater than the ‘Post per page’ option within WordPress displays that number of events before pagination starts to kick in.

You’re using Divi which IIRC has its own settings for posts per pages, check if any of those are conflicting here as it is likely filtering the same value we set to change those.

I don’t use Divi, but IIRC the settings are in Divi -> Theme Options -> General.


KarenC

February 14, 2023 at 3:29 pm

Thanks Tony. The settings on Divi was 5 which was different to the 10 before pagination on the page. I have however now updated that (Number of Posts displayed on Archive pages) to 50 but it’s still staying at 10 per page. I can’t see where the 10 is coming from. Please let me know what else I can check.


Tony

  • Support Staff

February 15, 2023 at 8:37 am

Yeah, that’s…. odd!

I’d check this with just Event Espresso activated to see if another plugin is hooking in and changing the value.

First, create a database backup of the site, your host will usually have a way for you to do this or you can use a plugin:

https://en-gb.wordpress.org/plugins/search/backup/

Once you have a backup, install the WP Health Check & Troubleshooting plugin:

https://wordpress.org/plugins/health-check/

Then go to Dashboard -> Tools -> Site Health.

Click Troubleshooting and then Enable Troubleshooting.

That will deactivate all plugins and switch you to a default theme, but only for you, the logged in admin.

In the admin bar you’ll see a ‘Troubleshooting Mode’ menu. Go there and then manage active plugins.

Find Event Espresso and click the ‘Enable while troubleshooting’ link.

Now you’ll have EE active, check the above page again, does it load correctly now?

—-

Note you can switch back out of Troubleshooting mode in the admin menu I mentioned above at the top. Troubleshooting Mode -> Disable Troubleshooting Mode to switch back to how it was before.


KarenC

February 15, 2023 at 4:30 pm

Thanks for the steps on how to troubleshoot. I have followed them and it looks like the pagination is behaving when using the default theme. So I went ahead and switched to Divi to check. At first, the pagination is still behaving but after I’ve refreshed like 3 times, then it appears back again.

How should I go about this from here? Thanks.


KarenC

February 15, 2023 at 4:41 pm

Actually, the weirdest thing just happened…after I’ve disabled troubleshooting mode, the problem appears to have gone away! I’ll check further and update again.


KarenC

February 15, 2023 at 4:46 pm

Nope, only when I’m logged in. After I logout, the pagination appears again. Any clues there?


KarenC

February 15, 2023 at 4:54 pm

No worries, I’ve figured it out that there are 2 pages that are similar and we are viewing the wrong page! Sorry for the confusion everywhere!

However, the pagination defaults to 10 if the limit is not set in the shortcode. I’ve put the limit to 50 at the moment. Is there a better way of having a full list of events displayed without pagination?


Tony

  • Support Staff

February 15, 2023 at 5:10 pm

Hi there,

We use a default value of 10 on the ESPRESSO_EVENTS shortcode to prevent timeouts for users loading large numbers of datetime/tickets within the event lists.

It’s possible to change the default value via a snippet if you are comfortable adding some PHP to the site?

Failing that you just need to set the limit attribute on the shortcode each time.

The post_per_page setting you have been changing above will alter how many events are displaying on the default event list output which is /events/ by default:

https://www.heartoflife.melbourne/events/


KarenC

February 15, 2023 at 5:18 pm

I think we’ll just stick with setting the limit to 50. Like you said there can be timeout issue for large number of records so I think that’s good enough for now. Thanks for your advice and patience with this one.


Tony

  • Support Staff

February 15, 2023 at 5:23 pm

No problem at all.

Something else to note is that with Divi, that /events/ output is a little…. limited. But if you enable Blog Style mode within divis settings it should look more like the ‘regular’ event lists.


KarenC

February 15, 2023 at 5:32 pm

Ok thanks Tony.

Viewing 13 reply threads

The support post ‘Event list with no pagination’ 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