Support

Home Forums Event Espresso Premium ESPRESSO_EVENT_ATTENDEES shortcode doesn't work with filters

ESPRESSO_EVENT_ATTENDEES shortcode doesn't work with filters

Posted: August 1, 2016 at 8:32 am

Viewing 8 reply threads


TKT

August 1, 2016 at 8:32 am

I’d really appreciate anyone’s help with the follows

I’m trying to create a list of attendees using the shortcode ESPRESSO_EVENT_ATTENDEES with filters

However, the filtering doesn’t seem to work no matter which parameters I put. It will always produce the full list of attendees.

Any suggestions what might be going wrong here?

Thanks,


Josh

  • Support Staff

August 1, 2016 at 1:26 pm

Hi there,

May I ask which were the parameters you had tried that did not work?


TKT

August 1, 2016 at 8:07 pm

Josh, every single parameters. None of them works.


Tony

  • Support Staff

August 2, 2016 at 4:01 am

Are you using the shortcode within a post/page content or from within a template file using do_shortcode()?


TKT

August 10, 2016 at 7:23 am

in template with do_shortcode()


Josh

  • Support Staff

August 10, 2016 at 9:16 am

It may help us let you know what’s going on if you can post your template code in a gist or paste bin. For what it’s worth, the ESPRESSO_EVENT_ATTENDEES short code isn’t intended to be used with do_shortcode, but we can probably give you some guidance if we know what you’re up to with this.


TKT

August 12, 2016 at 11:16 am

Hi, here’s the template code. Any suggestions would really be appreciated.

<div class=”content-espresso”>
<h2> Early Bird </h2>
<div class=”card-box”>
<?php echo do_shortcode(‘[ESPRESSO_EVENT_ATTENDEES ticket_id=15]’); ?>
</div>
<h2> Regular</h2>
<div>
<?php echo do_shortcode(‘[ESPRESSO_EVENT_ATTENDEES ticket_id=17]’); ?>
</div>
<h2> Exhibition Only</h2>
<div>
<?php echo do_shortcode(‘[ESPRESSO_EVENT_ATTENDEES ticket_id=26]’); ?>
</div>
</div>


TKT

August 12, 2016 at 11:17 am

Also, would it be possible to add more than one filter function in one shortcode?


Josh

  • Support Staff

August 12, 2016 at 11:55 am

Sure, for example you can do something like:

[ESPRESSO_EVENT_ATTENDEES status=RAP ticket_id=15]

Is there a reason you cannot put the shortcodes inside the page’s content editor? Which version of Event Espresso 4 do you currently have activated?

Viewing 8 reply threads

The support post ‘ESPRESSO_EVENT_ATTENDEES shortcode doesn't work with filters’ 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