Support

Home Forums Event Espresso Premium Attendee List Shortcode Breaks with "Use Custom DIsplay Order"

Attendee List Shortcode Breaks with "Use Custom DIsplay Order"

Posted: January 5, 2016 at 6:38 pm

Viewing 5 reply threads


Matthew Breakey

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).
http://www.accyyc.com/events/niblock-to-popes-peak-traverse/

I did so through a child-theme by modifying the files:
content-espresso_events.php
content-espresso_events-datetime.php
content-espresso_events-ticket.php
content-espresso_event-details.php
I then turned on the custom order to rearrange elements as I could not change the order by making changes to the above 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


Lorenzo Orlando Caum

  • Support Staff

January 5, 2016 at 7:20 pm

Hi Matthew,

I tested with no custom templates & the custom display order and the [ESPRESSO_EVENT_ATTENDEES] shortcode and that worked:

http://cl.ly/350I222F1h3L

Have you tried temporarily renaming your custom templates and then turning on the custom display order?


Lorenzo


Matthew Breakey

January 7, 2016 at 10:14 pm

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?


Tony

  • Support Staff

January 8, 2016 at 4:54 am

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:

espresso_get_template_part( 'content', 'espresso_events' );

That will then call content-espresso_events.php and display the event in whichever order you have set there.

Does that help?


Matthew Breakey

January 11, 2016 at 8:03 am

It does, thank you


Tony

  • Support Staff

January 11, 2016 at 8:10 am

You’re most welcome, Matthew.

Viewing 5 reply threads

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.

Event Espresso