I want to call the shortcode [ESPRESSO_EVENT_ATTENDEES event_id=X] from within the lop in shortcode [ESPRESSO_EVENTS] in my template using do_shortcode(…) but this is not working (blanks displatyed). I tried calling:
echo do_shortcode( ‘[ESPRESSO_EVENT_ATTENDEES event_id=”‘ . $post->ID . ‘”]’ );
from line 70 in file content-espresso_events-shortcode.php but this doesn’t work. I have the feeling that I need to call some scripts first to make this shortcode known in this place because pasting [ESPRESSO_EVENTS] and [ESPRESSO_EVENT_ATTENDEES event_id=”36443″] in a POST or PAGE does work.
Hi Josh, oh wow great ! Now it works because of using the display_on_archives=TRUE setting ! I didnt know about that parameter and still dont know what it does and why it works? Some help page says: “Will display the attendees list when events are viewed on archive pages”. What is an archive age ?
An archive is synonymous with a list of events, as opposed to a page with a single event.
Viewing 3 reply threads
The support post ‘Calling [ESPRESSO_EVENT_ATTENDEES event_id=X] from within [ESPRESSO_EVENTS] ?’ 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.
Support forum for Event Espresso 3 and Event Espresso 4.