Home Forums Event Espresso Premium Category page 404

Category page 404

Posted: April 6, 2015 at 11:36 am

Kactus Pie

April 6, 2015 at 11:36 am

Hi there,

I’m getting a 404 when I try to navigate to a specific Event Category archive page, you can see it here:

and on my other Category archive page, it’s redirecting to a single event page:

I’ve reset permalinks but it’s not done anything. Any thoughts?

Many thanks

Lorenzo Orlando Caum

  • Support Staff

April 6, 2015 at 1:04 pm

Hi, you were close on the URL:

Remove the /events/ part of the URL.


Kactus Pie

April 6, 2015 at 4:27 pm

Ah, thanks Lorenzo – it’s more a problem with my category filter then which was linking to the URL including /events/.

Do you know if it’s possible to change the slug from /events/ to /something else (en my case I need it to be /cartelera/) without messing up the plugin’s funcionality? If so, could you let me know which template registers the Post Type? I’ve not found it so far…

Thanks again!

Kactus Pie

April 6, 2015 at 7:36 pm

Hi Lorenzo, sorry, another question regarding the Category page –

I’m in the process of altering the Event List page to only display the thumbnail and event title – this is working fine:

But for some reason, the Category page isn’t taking on this same layout. I’ve tried duplicating archive-espresso_events.php and renaming it category-espresso_events.php to target it even more exactly but it does nothing. Do the Category archive pages use some other layout other than the if (is_archive)statements within the templates?


Kactus Pie

April 6, 2015 at 8:00 pm

I’ve discovered that the Category archive page is using the parent theme’s loop.file template which I can’t seem to override with the normal methods, i.e creating a category-espresso_events.php template in the child theme – do you know what might work? Many thanks


April 7, 2015 at 1:31 am


Yes it is possible to change Event Espresso /events/ slug, please see this guide:

Regarding the template, the Event Category will use the archive-espresso_events.php if that is found in the theme folder.

That template file uses the loop-espresso_events.php file whihc in turn uses this file: /wp-content/plugins/event-espresso-core-reg/public/Espresso_Arabica_2014/content-espresso_events.php

That file contains requests to different template parts based on whether the event is single or is archive.

Does that help? Let me know if you have any more questions.

Kactus Pie

April 7, 2015 at 12:16 pm

Hi Dean,

Thanks so much for your reply. The slug change worked perfectly so that’s great. Is it also possible to change the /event-category/ slug without using a 3rd party plugin?

I’d figured out the templates for the Event Category pages just as you explained them but nevertheless, for some reason they’re using my Parent theme’s loop.php instead of archive-espresso_events.php > loop-espresso_events.php > content-espresso_event.php, all of which I’ve copied from the plugin into my Child theme.

Here’s an example of a Category page using loop.php:

And this is how it should be looking (Event List using archive-espresso_events.php etc):

I realise this may be a bit out with your support remit but if you have any idea why it would be doing that I’d be most appreciative.

Thanks again


April 8, 2015 at 6:05 am


Regarding the event category slug, yes you can. We have a filter for it:

add_filter( 'FHEE__EE_Register_CPTs__get_taxonomies__taxonomies', 'my_custom_event_category_slug');
	function my_custom_event_category_slug( $thearray ) {

    	if ( !empty($thearray['espresso_event_categories']) ) {
    		$thearray['espresso_event_categories']['args']['rewrite']['slug'] = 'something';

    		//echo "<pre>" . print_r( $thearray, 1 ) . "</pre>";

    		return $thearray;
    	return $thearray;

Regarding the templates, a child theme should still see the archive-espresso_events.php and use it for the event categories. I created a basic child theme to test and it worked fine with those 3 files copied over.

What theme are you using?

Kactus Pie

April 8, 2015 at 7:19 am

Thanks for that Dean, the category slug function worked a treat.

I’m using the following theme:

I’ll be doing a lot of customisation to it (replacing the in-built events system with Event Espresso for a start) so really it’s just a foundation.

There must be something specific within the theme that takes precedence over the child theme but it’s strange because my modifications to the archive-espresso-events.php work perfectly for the Event Listing page so I don’t see why the Category page should be any different?

Kactus Pie

April 8, 2015 at 7:21 am

Ah, just for reference, the URL to my category pages is now:

It’s taking on the layout option (there’s a few) that is specified in the theme’s options in the Admin.


April 9, 2015 at 4:21 am

Using the What Template Am I Using plugin, it looks like the Event theme is using the taxonomy.php file, so what I did as a test was duplicate the archive-espresso_events.php and renamed it taxonomy.php (in the child theme) and it showed the category archive (which is a Custom Taxonomy really), in the same way as the event list archive.

Is that suitable for your needs?

Kactus Pie

April 9, 2015 at 9:08 am

Wonderful! I should’ve managed to figure that out myself – thank you so much for all your help and patience Dean 🙂

The support post ‘Category page 404’ 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.
Documentation for EE3 and EE4
Documentation for Event Espresso 3 Documentation for Event Espresso 4

Status: closed

Updated by  Kactus Pie 5 years, 1 month ago ago

Topic Tags

Tagged: ,


This topic is: resolved
Do NOT follow this link or you will be banned from the site!