Support

Home Forums Event Espresso Premium EE4 Event List Shortcode Pagination Issue

EE4 Event List Shortcode Pagination Issue

Posted: March 24, 2014 at 1:00 pm

Viewing 3 reply threads


Jason Piasecki

March 24, 2014 at 1:00 pm

I was having issues with the pagination with the shortcode. In order to fix this I put this in my functions.php. Hope this helps fix the bug.

<code>function pagination_espresso($args) {
    $paged = (get_query_var(&#039;paged&#039;)) ? get_query_var(&#039;paged&#039;) : 1;
    $args[&#039;paged&#039;] = $paged;

    return $args;
}
add_filter(&#039;EES_Espresso_Events__process_shortcode__default_espresso_events_shortcode_atts&#039;, &#039;pagination_espresso&#039;);</code>


Lorenzo Orlando Caum

  • Support Staff

March 24, 2014 at 5:57 pm

Hi Jason,

Could you share more information on what is not working? Also, could you let us know the version of Event Espresso that you are running?

We’ll then be able to running some testing and create a report for the development team (if needed).


Lorenzo


Jason Piasecki

March 26, 2014 at 1:21 pm

Hi Lorenzon,

Sure. When using the [ESPRESSO_EVENTS] shortcode the pagination links are outputted to the page but when clicked it brings you to a second page but the WP_Query is not updated. It is outputting the same events from the first page.


Josh

  • Support Staff

March 26, 2014 at 2:04 pm

Hi Jason,

This was fixed in the update we released today, which added the paged arguments like you did and an offset argument was added too:

https://eventespresso.com/wiki/ee4-changelog/#4.1.10

Viewing 3 reply threads

The support post ‘EE4 Event List Shortcode Pagination Issue’ 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