Support

Home Forums Event Espresso Premium Events Table View Shortcode not working

Events Table View Shortcode not working

Posted: August 20, 2018 at 1:04 pm

Viewing 6 reply threads


TommyTrojan

August 20, 2018 at 1:04 pm

Hi,

Prior to upgrading, I had the file espresso-events-table-template-toggle2.template.php in my child theme that showed a version of the Events Table View. However after the PHP upgrade the same page does not show the Events Table View. My shortcode on my main page is:
[ESPRESSO_EVENTS_TABLE_TEMPLATE table_search = false table_paging = false category_filter = false table_sort = false show_all_datetimes=true footable = false template_file = espresso-events-table-template-toggle2.template.php category_slug=August ]

If I change the template to …toggle.template.php the standard version of the events table appears with my events. But how can I get back to my toggle2.template.php in my child theme?
Thanks


Josh

  • Support Staff

August 20, 2018 at 1:15 pm

Hi,

Can you post the contents of your custom espresso-events-table-templatetoggle2.template.php file into a pastebin or into a GitHub gist? There’s probably some code in there that needs to be updated for PHP7.


TommyTrojan

August 20, 2018 at 1:30 pm

*code removed*

  • This reply was modified 6 years, 3 months ago by Josh. Reason: posting large blocks of code not advised


Josh

  • Support Staff

August 20, 2018 at 1:53 pm

Did you have any questions about posting the code to a pastebin or gist?

We ask that large blocks of code not be posted into replies here.

The code you’ve shared has some issues, the first one being on line 77, which should be changed to:

$category_slugs = array();

and the else block following should be removed.

If you can post the code to a GitHub gist I can make a fork and include the fixes.


TommyTrojan

August 20, 2018 at 2:13 pm

Thanks, here is the gist link:
https://gist.github.com/USCAlumniAssociation/6858e9a4fc2d2922719c808d9288b819


Josh

  • Support Staff

August 20, 2018 at 2:33 pm

https://gist.github.com/joshfeck/2c216426c751fd6c440ce2a5c9c416ea


TommyTrojan

August 20, 2018 at 4:06 pm

Thank you!

Viewing 6 reply threads

The support post ‘Events Table View Shortcode 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