Support

Home Forums Event Espresso Premium Admin only Answer shortcode

Admin only Answer shortcode

Posted: October 23, 2017 at 9:12 am


jrotz

October 23, 2017 at 9:12 am

According to instructions found here:
https://eventespresso.com/wiki/answers-shortcode/

I want to add an admin only answer to a custom question to tickets created by the Ticketing add on, Is this the correct snippet? If so, where do I add the following snippet:

<?php echo do_shortcode( ‘[EE_ANSWER q=”10″ a=”‘.$data->attendee->id.'” ]’ ); ?>


Josh

  • Support Staff

October 23, 2017 at 11:22 am

Hi jrotz,

The code you’ve got there actually only works for a front end page, and with Event Espresso 3 only.

You can add the answer to a custom question in a ticket by using the [RECIPIENT_ANSWER_*] shortcode inside the ticket message editor. From the ticket message type help section:

This is a special dynamic shortcode. After the “*”, add the exact text of an existing question, and if there is an answer for that question for this recipient, then it will be output in place of this shortcode.


jrotz

October 24, 2017 at 8:59 am

That worked, thank you.

The support post ‘Admin only Answer 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