Hi Stephen.
I recently noticed that the show more/less links that should appear if an event has more than 5 upcoming dates are no longer functioning. Instead, the entire list of upcoming dates is being displayed. This is occurring on two sites (with the same configuration and child themes, but different content).
Unfortunately, these are client-maintained sites, so I’m not sure when the issue first arose, but everything is currently up-to-date. I’m not seeing any errors or warnings when I inspect the code, and I’ve confirmed that the theme is using the “eo-upcoming-dates” id for the relevant list (I have a modified copy of event-meta-event-single.php in my child theme).
Let me know if you have any immediate thoughts on this issue or if you need more info.
Regards,
Tristan
-
This topic was modified 8 years, 9 months ago by Tristan Tamplin.
Tristan Tamplin
Hi Tristan,
This changed in 3.0.0, it now targets elements with the class eo-upcoming-dates
rather than ID. (see https://github.com/stephenharris/Event-Organiser/pull/214)
My apologies this was not listed as one of the breaking changes. In retrospect it probably should have catered for themes where they were using the ID.
I shall address this in 3.0.3.
Stephen Harris
Thanks for that Stephen — I appreciate both the promptness and clarity of your reply.
So are you planning to check for both the class and the ID in the next version, or will it continue to be class only and you’ll just update the docs/notes accordingly?
Tristan Tamplin
Hi Tristan,
It will check for both class and ID. But you should be able to fix this before that release by using the class instead.
Stephen Harris