How can i retrieve my CUSTOM FIELD value? Tried to insert the customfield name used on the EE page, but nothing happened ;( thanks!
<?php
$key_1_value = get_post_meta( get_the_ID(), ‘CUSTOMFIELD’, true );
// check if the custom field has a value
if( ! empty( $key_1_value ) ) {
echo $key_1_value;
}
?>
thats my own template, build from scratch. what does the template have to have? other meta fields like the date or event_id are showing up using the shortcode?!
Since we didn’t build your template that you built from scratch, I really don’t see how we can support it. I can advise checking the example templates out that are located in post-type-samples to see how they handle the variables.
RESOLVED! Thanks for your awesome support! Really great!
Viewing 9 reply threads
The support post ‘Custom Fields’ 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.