Support

Home Forums Event Espresso Premium EE4 – Event listing pagination not working

EE4 – Event listing pagination not working

Posted: March 4, 2014 at 11:28 am

Viewing 6 reply threads


atartaglia

March 4, 2014 at 11:28 am

I use the [ESPRESSO_EVENTS] tag on the page where I list out my events because I like to have some language prior to the listing (you can see the page at http://sjjuniortour.com/tournaments/).

Unfortunately the pagination at the bottom of the page is not working (it is linking to http://sjjuniortour.com/tournaments/page/2/ and that page does not work). The pagination on the events page works fine (http://sjjuniortour.com/events/ but I need to have some language prior to my events).

Is this something that I can fix on my end?


Josh

  • Support Staff

March 4, 2014 at 2:39 pm

Hi there,

I think you’ve discovered a bug we missed in testing with the [ESPRESSO_EVENTS] shortcode so I will be sending a ticket over to the dev team so they can look into this.

In the meantime, there is a hook that you can use to add content before the start of the event archive loop. The hook is:

AHEE__archive_espresso_events_template__before_loop

With that, you can inject your content into that action with a little function you add to your child theme’s functions.php file like this:

add_action( 'AHEE__archive_espresso_events_template__before_loop', 'my_content_before_the_event_loop');

function my_content_before_the_event_loop() {
	?>
	<div>
		<h2>HTML goes here</h2>
	</div>
	<?php
}


Leonardo Angelini

March 5, 2014 at 3:09 am

Hi,
I have the same problem. But I don’t understand how I can fix it. Which file I have have to change?

Another question: Can I disable the pagination? I want show all my events (about 60) in the same page.


Josh

  • Support Staff

March 5, 2014 at 7:50 am

Hi Leonardo,

We haven’t fixed the pagination for the [ESPRESSO_EVENTS] shortcode yet. When we do, it will be in a hotfix release, so you will not need to modify the code.

You can make all the events to appear on the same page when you’re using the [ESPRESSO_EVENTS] shortcode by using the limit parameter. For example you type:

[ESPRESSO_EVENTS limit=60]

to make it display 60 events on a page.

If you want the /events/ view to do the same, you change the “Blog pages show at most” setting in WP > settings > reading.


Leonardo Angelini

March 5, 2014 at 9:47 am

Thanks Josh,
[ESPRESSO_EVENTS limit=60] works perfectly 🙂


Josh

  • Support Staff

March 5, 2014 at 5:35 pm

You’re welcome.


atartaglia

March 9, 2014 at 10:06 am

Thanks, all good on this end as well.

Viewing 6 reply threads

The support post ‘EE4 – Event listing pagination not working’ 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