Support

Home Forums Event Espresso Premium Event Meta (2)

Event Meta (2)

Posted: February 23, 2013 at 4:54 am


mrclarke

February 23, 2013 at 4:54 am

I need to add some default extra data to my event(s), so naturally I thought the event meta would be the perfect solution. I tried adding the following example code found Here and copied it to custom_functions.php file and the file ws uploaded here: wp-content/uploads/espresso.

Have I missed something out? or done something wrong? Can you help?

  • This topic was modified 4 years, 1 month ago by  Garth.


Dean

February 25, 2013 at 1:14 am

Hi,

The event meta is added via the event editor. To display the event meta, you need to add the shortcode to the event or the

<?php echo do_shortcode('[EE_META type="event_meta" name="my_meta_key"]'); ?>

to the event_registration_display or event_list_display templates. You could probably add that php code elsewhere as well (like a post/page template) though I have never tried it.


mrclarke

February 25, 2013 at 5:04 am

Hi Dean,
I have added the shortcode [EE_META type="event_meta" name="my_meta_key"] exactly as stated on the example page above into the event editor, it is still not working.


mrclarke

February 25, 2013 at 5:06 am

I do not wish to add the PHP code as I only want the event_meta data to appear on certain events and not all.


mrclarke

February 25, 2013 at 5:06 am

I do not wish to add the PHP code as I only want the event_meta data to appear on certain events and not all.


Dean

February 25, 2013 at 5:07 am

Hi,

Did you change the “my_meta_key” to the name of your meta key field?

For example, if you go to the meta tags and add something into the event_hastag meta key field, you would need to use the shortcode

[EE_META type="event_meta" name="event_hashtag"]


mrclarke

February 25, 2013 at 5:34 am

Hi Dean,
Problem solved – thank you.

The support post ‘Event Meta (2)’ 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