Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-sales domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the better-click-to-tweet domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-amazon domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-stats domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wordpress-seo domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114
EE4 Event List Shortcode Pagination Issue | Event Espresso - Staging Server

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

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:

http://staging.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 - Staging Server