Support

Home Forums Custom Files Add-on (EE3) no event_meta in event_list_table.php

no event_meta in event_list_table.php

Posted: July 9, 2012 at 6:59 am


Dave Loodts

July 9, 2012 at 6:59 am

Hello, i’m busy doing customization on the event_list_table.php custom file.
I want to include a custom-made meta_value event_tb, but it does not work.
I’ve read about adding shortcode EE_META to it, but this is not working.

Anybody ?


Chris Reynolds

  • Support Staff

July 9, 2012 at 9:10 am

Using the EE Meta, create a meta key called event_tb with whatever value you want to use. In your event_list_table.php, assign a variable to that value by doing something like this:

 $event_tb = do_shortcode('[EE_META type="event_meta" name="event_tb"]');

Then call that variable wherever you want it to display with an echo, e.g. echo $event_tb;.


Dave Loodts

July 10, 2012 at 12:38 am

Hey Chris, thanks for the help but i tried the shortcode already.

It seems like the shortcodes don’t work in these files…
From the forum i found following solution, but not with the shortcodes.


global $event_meta;
$event_meta = unserialize($event->event_meta);
$event_tb = $event_meta['event_tb'];


Josh

  • Support Staff

July 10, 2012 at 8:59 am

Just to be sure, did that work for you?


Dave Loodts

July 10, 2012 at 11:40 pm

Yes, that did the trick.

The support post ‘no event_meta in event_list_table.php’ 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