Support

Home Forums Event Espresso Premium PHP code to display price Reply To: PHP code to display price

Reply To: PHP code to display price

Author Replies
Josh # Posted on May 7, 2018 at 9:18 am

Hi there,

It might help to explain that in EE4 one event can have multiple tickets, each with their own price. The same also applies to datetimes: There can be multiple tickets, each with their own price, assigned to one datetime.

So the closest function to what you’re looking for is
espresso_event_tickets_available.

example of usage for the espresso_events-datetimes.php template would be:
echo espresso_event_tickets_available($post->ID, false, true);

Do NOT follow this link or you will be banned from the site!