Hello, i get the same error as this post https://eventespresso.com/topic/events-listing-url-error/, i have tried changing theme, adding the filter to rename the cpt slug, flush my permalinks but nothing. I have created an event which is published and i still get a 404 error. The problem is that i am in localhost working environment. Can you help? Any ideas?
Hi Lorenzo, i have tried all of them yes, and i can confirm that i have at least one event published and i have deactivated all plugins except EE4 and i have twentyfifteen theme activated but the problem persists. I also updated to the last version 4.6.19. Do i have to create an archive-events.php or single-events.php file? Also i must say that i have a bunch of custom post types as such (none named events)
// Register Custom Post Type
function efc_defacto() {
// Hook into the ‘init’ action
add_action( ‘init’, ‘efc_defacto’, 0 );
and this code to solve a problem with accessing custom post types pages
function my_flush_rewrite_rules() {
flush_rewrite_rules();
}
add_action( ‘after_switch_theme’, ‘my_flush_rewrite_rules’ );
Hi, creating a new template isn’t needed. Did you refresh permalinks by browsing to the permalinks page after temporarily moving the site into defaults?
Also, can you confirm that the local host is running Apache or Nginx and not Windows (IIS)?
—
Lorenzo
Viewing 3 reply threads
The support post ‘/events/ listing page 404 error’ 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.