Support

Home Forums Event Espresso Premium Conditional Tag depending on Event (to be used for Checkout Pages)

Conditional Tag depending on Event (to be used for Checkout Pages)

Posted: December 7, 2016 at 12:45 pm

Viewing 1 reply thread


modernearth

December 7, 2016 at 12:45 pm

Hi!

Is it possible to have a conditional tag added to the checkout pages depending on the event that’s being checked out for? I’m trying to get a value from Advanced Custom Fields to get echoed depending on one of the events. I tried using if(is_espresso_event()) to do it but it’s not working.

Thanks in advance!


Tony

  • Support Staff

December 8, 2016 at 5:57 am

Hi there,

is_espresso_event() returns true or false depending on if you are viewing an event or not if you are trying to use it to pull the event object it won’t work.

Where exactly are you trying to output the details? There may be a hook within EE you can use.

Viewing 1 reply thread

The support post ‘Conditional Tag depending on Event (to be used for Checkout Pages)’ 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