Support

Home Forums Event Espresso Premium Calling [ESPRESSO_EVENT_ATTENDEES event_id=X] from within [ESPRESSO_EVENTS] ?

Calling [ESPRESSO_EVENT_ATTENDEES event_id=X] from within [ESPRESSO_EVENTS] ?

Posted: March 1, 2018 at 2:45 am


Um Library

March 1, 2018 at 2:45 am

Dear reader,

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.

The posts:

didnt help me either.

Hope you can help.

Bre,
Ivo


Josh

  • Support Staff

March 1, 2018 at 3:15 pm

Hi there,

<?php echo do_shortcode('[ESPRESSO_EVENT_ATTENDEES event_id='.$post->ID.' display_on_archives=true]'); ?>

should allow those to display there barring some unknown factor.


Um Library

March 1, 2018 at 4:18 pm

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 ?

Bye,
Ivo


Josh

  • Support Staff

March 2, 2018 at 6:38 am

An archive is synonymous with a list of events, as opposed to a page with a single event.

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.

Event Espresso