Hi, I’ve been working on adding Structured Data schema markup for the events in the template file espresso_table.php in EE3, and I’ve managed to mark up almost everything except for the event featured image.
Could you please let me know if there is any way of getting the link to the featured image into that template?
I don’t have to have to display the image, only to bring the url
so I can use code
<span itemprop=”image” content=”URL of the featured image”></span>
also is there any way to bring the date of when the event was created?
Not the start/end of the event, just when I created it? that will be to markap offers.validFrom
If you have the $event object available, the date submitted can be displayed with: event_date_display($event->submitted, get_option('date_format'))
Viewing 1 reply thread
The support post ‘Even Featured Image in [ESPRESSO_TABLE] custom template’ 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.