Support

Home Forums Event Espresso Premium Event table template list only showing 10 events instead of all of them

Event table template list only showing 10 events instead of all of them

Posted: November 8, 2018 at 11:35 am


fishwinkmarketing

November 8, 2018 at 11:35 am

Hi there!

For some reason, the table view will only show 10 events and the pagination won’t work. I have tried adjusting the parameters in the shortcode ([ESPRESSO_EVENTS_TABLE_TEMPLATE category_slug=art category_filter=false limit=30]) but it still only shows 10 on only 1 page. Here is a link to the ==> Art page. There should be roughly 27 art classes but only 10 show up and no pagination.

Please help!


Tony

  • Support Staff

November 8, 2018 at 3:00 pm

Hi Jessica,

That’s odd as the above should be working fine, do you have any plugins hooking in to alter the post_per_page on wp_query?

You’ll need to add some code to the add-on to debug this a little.

In \eea-events-table-view-template\EES_Espresso_Events_Table_Template.shortcode.php

Around line 247 you should have:
$wp_query = new EE_Events_Table_Template_Query($attributes);

Just above that add var_dump($attributes);

Then around line 406 you’ll see something like parent::__construct($args);

Just above that add var_dump($args);

Refresh the art page and it’ll output some details above the template, paste those here and then remove the above code again (your visitors will see the same you whilst that code is there).

I’m checking to make sure that the value you set actually gets passed along.


fishwinkmarketing

November 8, 2018 at 3:15 pm

Hi Tony,

We have another developer that’s helping us with some filtering options so this could very well be caused by something he is working on. We have tried reaching out to him but haven’t heard back yet. Just to be sure, here is the output from the page when adding that code to the template:

array(18) { [“template_file”]=> string(43) “espresso-events-table-template.template.php” [“limit”]=> string(3) “100” [“show_expired”]=> bool(false) [“month”]=> NULL [“category_slug”]=> string(3) “art” [“category_filter”]=> string(5) “false” [“category_filter_text”]=> NULL [“order_by”]=> string(10) “start_date” [“sort”]=> string(3) “ASC” [“footable”]=> NULL [“table_style”]=> string(10) “standalone” [“table_sort”]=> NULL [“table_paging”]=> string(11) “”false”” [“table_pages”]=> string(3) “100” [“table_striping”]=> NULL [“table_search”]=> NULL [“show_all_datetimes”]=> bool(false) [“show_venues”]=> bool(true) } array(18) { [“template_file”]=> string(43) “espresso-events-table-template.template.php” [“category_filter”]=> string(5) “false” [“category_filter_text”]=> NULL [“footable”]=> NULL [“table_style”]=> string(10) “standalone” [“table_sort”]=> NULL [“table_paging”]=> string(11) “”false”” [“table_pages”]=> string(3) “100” [“table_striping”]=> NULL [“table_search”]=> NULL [“show_all_datetimes”]=> bool(false) [“show_venues”]=> bool(true) [“post_type”]=> string(15) “espresso_events” [“posts_per_page”]=> string(3) “100” [“update_post_term_cache”]=> bool(false) [“update_post_meta_cache”]=> bool(false) [“paged”]=> int(1) [“offset”]=> int(0) } array(7) { [“post_type”]=> string(15) “espresso_events” [“tax_query”]=> array(2) { [“relation”]=> string(3) “AND” [0]=> array(1) { [0]=> array(3) { [“taxonomy”]=> string(25) “espresso_event_categories” [“field”]=> string(4) “slug” [“terms”]=> array(1) { [0]=> string(3) “art” } } } } [“posts_per_page”]=> int(10) [“update_post_term_cache”]=> bool(false) [“update_post_meta_cache”]=> bool(false) [“paged”]=> int(1) [“offset”]=> int(0) }

Thanks!


Tony

  • Support Staff

November 8, 2018 at 3:33 pm

There are three arrays there, but there should only be 2 output with the code I gave you?

Is the other developer currently working on the site?


fishwinkmarketing

November 15, 2018 at 10:03 am

Hey Tony,

Sorry for the late response I forgot to update this ticket. Our other developer had made a change that caused this. All good to go now.

Thanks for you help!


Tony

  • Support Staff

November 15, 2018 at 10:12 am

Great, however, now I’m not curious 🙂

Any details of the change made? If not nevermind, either way, I’m glad it’s working for you.

The support post ‘Event table template list only showing 10 events instead of all of them’ 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