I am now trying to use it with mixed results. I am pulling in an ACF image field which returns the image url, ..but for one field it returns nothing and for the other it returns the number ’70’ which is neither the image url 😉 or attachment id of that image.
Can anyone shed any light on this and how it should work.
I want to include images assigned to an event with ACF in the ticket template …so every event has 4 images box_1 box_2 box_3 box_4 and has an image assigned to each ..I then want these to appear on the tickets.
[EVENT_META_*{meta_key}] will pull the value for whatever is set for the meta_key passed to it. It uses get_post_meta() to pull the value from the post and returns that value within the message.
The code for that shortcode strips out EVENT_META_* and passes the meta key get_post_meta() like this:
$this->_event->get_post_meta( $shortcode, true )
Note – We have a wrapper for get_post_meta() which adds the current event ID, which is why it isn’t needed in the above.
The problem here is ACF is storing the ID of the Image rather than the image url within that field, here’s an example from one of my test sites – http://take.ms/Zcksi
So [EVENT_META_*] is working as expected and returning the value stored within that field, for this to return the image URL the meta field needs to contain the url for that image.
Viewing 1 reply thread
The support post ‘Using [EVENT_META_*] to pull in meta data to tickets’ 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.