Support

Home Forums Event Espresso Premium EE4 Calendar Does not Appear

EE4 Calendar Does not Appear

Posted: June 9, 2014 at 1:07 pm


United Networks

June 9, 2014 at 1:07 pm

I migrated from EE3 to EE4.2.5p and installed the new EE4 (v3.0.0reg) Calendar plugin. Shortcodes look the same for the calendar, [ESPRESSO_CALENDAR show_expired=”true”], but it’s not displaying. I’ve deleted the old EE3 plugin and the old EE3 calendar plugin, but no go. Any thoughts?

http://goo.gl/ZLyF8w


Lorenzo Orlando Caum

  • Support Staff

June 9, 2014 at 1:36 pm

Hello,

This is happening because the events page (/events/) is now virtual in Event Espresso 4. Therefore, the software is actually looking for an event with a name of ‘calendar.’

To fix this, go to WordPress admin –> Pages and move the calendar page from under the events parent page.

If you would like to continue using the URL as is, then the other option is to change the default events slug that is used by Event Espresso 4. The following example will change it from events to workshops:

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 filter can be added to your child theme’s functions.php or a site specific plugin:

https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/

Once in place, change ‘workshops’ in the sample code above to something else and save changes.

Then refresh your WordPress permalinks by browsing to the permalinks page in the WordPress admin.


Lorenzo


United Networks

June 9, 2014 at 1:44 pm

Moving it was fine in this case, which solved the issue. Thanks!

The support post ‘EE4 Calendar Does not Appear’ 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