Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-sales domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the better-click-to-tweet domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-amazon domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-stats domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wordpress-seo domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114
Custom post type for EE? | Event Espresso - Staging Server

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 (http://staging.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!


Lovehistory

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 - Staging Server