Posted: 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? |
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 } |
|
|
Hi, Another question: Can I disable the pagination? I want show all my events (about 60) in the same page. |
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. |
|
|
Thanks Josh, |
You’re welcome. |
|
|
Thanks, all good on this end as well. |
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.