Posted: January 5, 2016 at 6:38 pm
|
I posted awhile back about the attendee list shortcode breaking with an update. I tested the shortcode and it seems to work well whenever the “Custom Display Order” is turned off or outside of the single event page (I’m assuming this was the upgrade that broke the shortcode). I am basically trying to create an event page that looks like the following (or close enough). I did so through a child-theme by modifying the files: Is there a why that I can customize the single event page formatting while not turning on the custom order? I would be doing this so that the attendee list shortcode would work. Thank you |
Hi Matthew, I tested with no custom templates & the custom display order and the [ESPRESSO_EVENT_ATTENDEES] shortcode and that worked: Have you tried temporarily renaming your custom templates and then turning on the custom display order? — |
|
|
I tried renaming the templates, turning on custom order and renaming, but no luck. Is there a way to order the elements directly through the templates (possibly content-espresso_events.php?) without turning on the custom display order? |
Yes you can order the templates manually but to do so you need to take over the template output from the beginning so you need to use a single-espresso_events.php template. This will likely be a copy of single.php or page.php with a couple of modifications. So lets say your creating a copy of single.php Copy that template and rename the copy to single-espresso_events.php Edit that template and find the call for the_content() Swap that call out for:
That will then call content-espresso_events.php and display the event in whichever order you have set there. Does that help? |
|
|
It does, thank you |
You’re most welcome, Matthew. |
|
The support post ‘Attendee List Shortcode Breaks with "Use Custom DIsplay Order"’ 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.