Support

Home Forums Event Espresso Premium Template Tags help

Template Tags help

Posted: November 30, 2014 at 8:33 pm

Viewing 1 reply thread


Lauren Hitchon

November 30, 2014 at 8:33 pm

Can you please give examples of how to use the tags
for example I am trying to get:
echo espresso_event_date_obj( $post->ID = TRUE );

This is not working of course but I am not sure how to make it work.

Also can you please help me get just the tickets left

I am using EE4
Wordpress Version 4.0.1
recently upgraded from EE3


Tony

  • Support Staff

December 1, 2014 at 5:25 am

Hi Lauren,

echo espresso_event_date_obj( $post->ID = TRUE );

espresso_event_date_obj() is expecting an Event ID ($EVT_ID) rather than a boolean value. (It is set to FALSE by default so we can check if a value has been passed)

How/if this will work depends on where you are using it, if you have created a loop from a query pulling in EE events, then $post->ID should be the Event ID.

We can not support customization’s however if you can provide some details of what you are editing and how you have pulled in the events we should be able to point you in the right direction.

Viewing 1 reply thread

The support post ‘Template Tags help’ 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