Support

Home Forums Event Espresso Premium Query events by event_meta value

Query events by event_meta value

Posted: September 15, 2012 at 12:35 pm


Meg Franz

September 15, 2012 at 12:35 pm

How would I go about querying events by a event_meta value? Notice the event_meta values are not included in the custom post meta.


Dean

September 18, 2012 at 3:28 am

Hi Meg,

I suppose this really depends on what you are trying to do.

I did a small test to use the meta data in the post registration page for example (registration_page.display.php), so I simply pulled over the event meta as mentioned in the event_post.php

<?php 
global $event_meta;
$event_meta = unserialize($data->event->event_meta);
var_dump($event_meta);
?>

Ok so all I did here was var_dump it, but as you can see the meta data is available there and can be manipulated.

The meta isnt available on the posts. I will ask a dev to examine this for a possible future update,

The support post ‘Query events by event_meta value’ 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