Support

Home Forums Custom Files Add-on (EE3) EE_META shortcode is not working

EE_META shortcode is not working

Posted: July 14, 2015 at 6:05 pm

Viewing 2 reply threads


Margaret Slater Thompson

July 14, 2015 at 6:05 pm

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.


Dean

July 15, 2015 at 5:05 am

Hi,

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.


Margaret Slater Thompson

July 17, 2015 at 4:21 pm

Hi Dean,

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:

$event_meta = unserialize($event->event_meta);
echo $event_meta[more_info];
Viewing 2 reply threads

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.

Event Espresso