Support

Home Forums Event Espresso Premium EE4 killed a page on my site

EE4 killed a page on my site

Posted: June 2, 2014 at 1:25 pm


David Dadekian

June 2, 2014 at 1:25 pm

I have a listings page on my site at http://eatdrinkri.com/events/ It’s existed at that URL for 5 years including while using EE3. When I upgraded to EE4 it doesn’t allow that page to load any more (it loads the “Apologies, but no entries were found.” page) and when I deactivated EE4 it defaults that /events/ page to the home page. Is there a way to fix this without having to rename my existing /events/ page? Thank you.


Lorenzo Orlando Caum

  • Support Staff

June 2, 2014 at 2:49 pm

Hi David,

Yes, you can set Event Espresso to use a different slug.

Add this filter to your child theme’s functions.php file or in a custom site specific plugin (https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/):

add_filter( 'FHEE__EE_Register_CPTs__register_CPT__rewrite', 'my_custom_event_slug', 10, 2 );
    function my_custom_event_slug( $slug, $post_type ) {
    	if ( $post_type == 'espresso_events' ) {
    		$custom_slug = array( 'slug' => 'workshops' );
    		return $custom_slug;
    	}
    	return $slug;
    }

The example above will tell EE4 to use workshops instead of events. You can change workshops to something else.

Then go to Wp-admin –> Settings –> Permalinks to refresh your permalinks.

Reference:

https://eventespresso.com/wiki/change-events-cpt-slug/


Lorenzo


David Dadekian

June 2, 2014 at 5:33 pm

Perfect! Thank you.

The support post ‘EE4 killed a page on my site’ 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