I am altering the espresso_table.php template to meet the needs of my client, whose account this is. I wish to display some custom meta information for each event. According to the documentation , I should be able to simply do_shortcode() in the template to have the custom meta I have assigned appear. That is not the case.
The espresso_table.php file is from the now deprecated Custom Files addon, so be wary when using it as it may not work correctly with the latest versions of EE3.
In this case, that table doesn’t have the data the shortcode needs, so add:
$event_meta = unserialize($event->event_meta);
before the do_shortcode and it should pick up the meta for you.
Thanks for the warning. That should really be placed somewhere prominently. It’s available for download just like all of the other EE add-ons etc.
Thanks for the code, it was useful even though it didn’t work exactly the way you suggested. Instead of trying to troubleshoot the shortcode further, I’m now just pulling the custom meta info I wanted (more_info) directly out of the array:
The support post ‘EE_META shortcode is not working’ 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 the Custom Files add-on for EE3.