Support

Home Forums Event Espresso Premium Additional attendees not showing up via shotcord

Additional attendees not showing up via shotcord

Posted: June 13, 2017 at 6:19 pm


IceTurtle4

June 13, 2017 at 6:19 pm

Hi!
I’ve set up multiple events now and in the description I am using the [ESPRESSO_EVENT_ATTENDEES] shortcode to display all current attendees.

The issue I am having is after the first registration it only shows that person/registration. Any registrations made after that initial one do not show up. I’ve tried cache clearing with no luck. But I’ve noticed that if I go into the event and re-save it, then the names do show up, but I can’t do that after every registration.

Have I missed something? Please let me know if there is a fix.


Tony

  • Support Staff

June 14, 2017 at 3:56 am

Hi there,

It sounds like the event is being cached which is why it shows the registrations after updating the event (saving a post usually purges the cache).

Can you post a link to the event so I can view this, please?


IceTurtle4

June 14, 2017 at 10:29 am

Sure!
http://squarebreaker.com/ciyc/events/

The site is still in development so that won’t be where it ends up living – also you’re welcome to register for an event to test it out as it’s all just demo now.


Tony

  • Support Staff

June 14, 2017 at 11:11 am

If you purge all caches without updating the event does the attendee list update?


Josh

  • Support Staff

June 14, 2017 at 2:49 pm

Hi IceTurtle4,

It turns out that the content generated by the [ESPRESSO_EVENT_ATTENDEES] shortcode is served from a built-in cache that expires after an hour. If you prefer to deactivate the caching, you can do so by adding the following to a plugin:

add_filter(
  'FHEE__EventEspresso_core_services_shortcodes_EspressoShortcode__shortcodeContent__cache_expiration',
  'my_custom_shortcode_cache_expiration',
  10,
  3
);
function my_custom_shortcode_cache_expiration( $cache_expires, $get_tag, $shortcode) {
  if ( $get_tag == 'ESPRESSO_EVENT_ATTENDEES' ) {
    $cache_expires = 0;
  }
  return $cache_expires;
}

You can add the above to a functions plugin, then activate the plugin. After the plugin is activated, the list will no longer be served from a cache.

The support post ‘Additional attendees not showing up via shotcord’ 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