Support

Home Forums Event Espresso Premium Last Registrant Name as Shortcode

Last Registrant Name as Shortcode

Posted: November 23, 2015 at 2:14 am


Tomas Brolin

November 23, 2015 at 2:14 am

Hi,
My client wishes to show the Last Registrant Name in homepage between some texts.
Ex: Hi, [LAST REGISTRANT] Welcome.
Couldn’t find any shortcode or template code.
TIA.


Tony

  • Support Staff

November 23, 2015 at 2:59 am

Hi Tia,

Can you explain this further please?

A shortcode that will display details of the last registrant to register onto an event is not currently available but I’m not sure if that’s what you are asking for.


Tomas Brolin

November 23, 2015 at 3:06 am

Hi Tony,

I’m looking for a shortcode to display the last registrant name [whatever be the event] like in a widget box or page etc

EX: http://www.mikkalmar.se/
Under “Anmäl dig! ” widget,

Gör som [Anna Frisk]! Anmäl dig till några av våra aktiviteter

Need [Anna Frisk] to be called from last registrant of event.

Thanks.


Tony

  • Support Staff

November 23, 2015 at 6:21 am

The latest registration can be pulled in using something like this:

https://gist.github.com/Pebblo/4817ecea1b6d93da665f

That function pulls in a single registration with a status of Approved, you can change the details to output whatever you need on line 36.

The support post ‘Last Registrant Name as Shortcode’ 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