Posted: February 11, 2021 at 6:53 am
Is there any template tag to get event price, event time, and available space to register in the event? |
|
I have managed to get the event time and date but still suffering to get the event price and available space for attendees to be registerd? |
|
Hi Mark, By available space for attendees do you mean spaces still for sale or in total? If you have an
The price of an event is a little more tricky as you assign prices to tickets within an event, if you have multiple tickets which price are you showing?
|
|
I don’t have an EE_Event object on my page. Would you please tell me which class I have to include in the page file to create an EE_Event object? |
|
Do you have a Aka a If so it should have the EE_Event object set as an additional property, so if you don’t have an EE_Event object but do have the
However, we also have a helper method that can pull this in for you:
|
|
For this reply, I Must say Tony you are Awesome. |
|
Thanks and you’re most welcome. Something I do recommend when working with EE models/object (like the EE_Event object), is Kint: https://wordpress.org/plugins/kint-debugger/ Wrap your variable within It really helps find the method/property you want/need when working with the models: https://github.com/eventespresso/event-espresso-core/tree/master/docs/G–Model-System |
|
The support post ‘Template Tags for event meta’ 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.