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;
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!
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.
Support forum for Event Espresso 3 and Event Espresso 4.