However as I’m on a WP page (EE payment page) I don’t think the $post value is pointing to the correct event. I have the event_id var available, is there an event_id-to-post_id function?
No I dont believe you can find out the Post ID via the Event info, though you can do it the reverse way as the Post meta holds the Event ID.
If you are on a page (rather than the event post) you would need to supply the appropriate post id to the function in order to get the meta info, as just running get_post_meta without a specific ID will make WP try and find the meta info for that page.
Thanks a lot for your help! That’s a shame, maybe something to add to the API? As I can’t see how to access the event date from the payment page…
Viewing 2 reply threads
The support post ‘Custom Field Variables: Post ID vs Event ID’ 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.
Support forum for Event Espresso 3 and Event Espresso 4.