Support

Home Forums Event Espresso Premium Event Espresso Core causing pagination issues

Event Espresso Core causing pagination issues

Posted: February 22, 2020 at 4:18 pm


sliu

February 22, 2020 at 4:18 pm

I am experiencing a pagination issue, and have narrowed the issue down to a conflict with EE4 Core Version 4.10.3.p

When EE4 plugin is activated, clicking on pagination (page numbers or “next”) takes users to a 404 error page.


Josh

  • Support Staff

February 24, 2020 at 6:38 am

Hi,

May I ask what type of pagination are we talking about? For example are these pages of your website’s blog, or some other type of WordPress post. Maybe you can share a link to the page in question and additional information (like the name of the post type, the theme, related plugins) so we can investigate further.


sliu

February 24, 2020 at 12:12 pm

This reply has been marked as private.


Josh

  • Support Staff

February 24, 2020 at 2:32 pm

Hi,

This appears to be related to the way Elementor Pro’s Post Element does paging. It kind of doesn’t follow the way WordPress posts do paging, so there’s a conflict when EE is activated. This is because the function that ensures event lists can be paginated (using standard WP pagination) sets any paged requests to use WordPress pagination.

Anyway, you can disable this by adding the following:

add_filter(
  'FHEE__EE_CPT_Strategy___set_paging',
  '__return_false'
);

You can add the above to a functions plugin or, if available, into your WordPress child theme’s functions.php file.

Please note with the above added, if you use the [ESPRESSO_EVENTS] shortcode on your home page, paging will no longer work without some additional coding.


sliu

February 25, 2020 at 12:07 pm

This reply has been marked as private.


Josh

  • Support Staff

February 25, 2020 at 12:11 pm

Thanks for letting us know this fixed the problem.

The support post ‘Event Espresso Core causing pagination issues’ 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