Support

Home Forums Event Espresso Premium Custom post type for EE?

Custom post type for EE?

Posted: March 15, 2013 at 7:35 am

Viewing 2 reply threads


cerulean

March 15, 2013 at 7:35 am

Quick question — I need to make the events searchable (https://eventespresso.com/topic/searchable-events/) but am not sure of the name of the custom post type generated by this plugin to use in a function. Thanks

function filter_search($query) {
if ($query->is_search) {
$query->set('post_type', array('post', 'ee-cpt-here'));
};
return $query;

};
add_filter(‘pre_get_posts’, ‘filter_search’);


cerulean

March 18, 2013 at 6:51 am

Any followup on this? Sorry if posting the code sample made the question more complicated. I just need to know what is the name of the custom post type used by EE so I can make events searchable using this function. I couldn’t find this in the documentation. Thanks!


Tony Warwick

March 18, 2013 at 8:55 am

Event Espresso uses the post type ‘espresso_event’ when creating custom post types.

Viewing 2 reply threads

The support post ‘Custom post type for EE?’ 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