tribe_events_list shortcode malfunction
-
Summary: The tribe_events_list shortcode that is part of Events Calendar Pro cannot be used more than once on a page when referencing a specific category, e.g.:
[tribe_events_list category="category1"]
[tribe_events_list category="category2"]
When it’s used twice or more (as in the example above to show events from 2 categories on the same page), both shortcodes display the same HTML output.
Possible problem: From my tests, it appears that a new instance of the class is not instantiated when generating the HTML for the shortcodes, so wherever this shortcode is used more than once, it always uses the settings from the last shortcode to output HTML to all the shortcodes, so you end up with duplicate content.
You can recreate this by placing the same shortcode on a page 3 times, with different categories, e.g.:
[tribe_events_list category="category1"]
[tribe_events_list category="category2"]
[tribe_events_list category="category3"]I submitted my question to the Tribe support team, but received a rubbish response, so I’m posting it here in case anyone else is struggling with the same issue so it gets some traction.
This used to work in previous versions, but seems to be an issue with the current version (The Events Calendar Pro v 6.1.1). I look forward to a fix for this ASAP please.
- The topic ‘tribe_events_list shortcode malfunction’ is closed to new replies.