I am trying to use custom fields to display custom info on events in the [ESPRESSO_EVENTS] list. I set up a one field called “Barcode” and input a value ‘12345’ but I can’t seem to figure out why it wont show for the event.
I have added the following code in content-espresso_events-shortcode.php
Code: <?php get_post_meta($post_id = the_ID(), 'Barcode'); ?>
It displays ‘6332’ on the event in the list. Every event I have has its own number displayed. Does EE4 support this function?
From the above, you are already hardcoding the key so it won’t make much difference in the echo itself.
Viewing 3 reply threads
The support post ‘Using Event Metadata’ 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.