Posted: 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: http://nuevo.tourdecinefrances.net/events/event-category/francesa/ and on my other Category archive page, it’s redirecting to a single event page: http://nuevo.tourdecinefrances.net/events/event-category/corto/ I’ve reset permalinks but it’s not done anything. Any thoughts? Many thanks |
Hi, you were close on the URL: http://nuevo.tourdecinefrances.net/event-category/francesa/ Remove the /events/ part of the URL. — |
|
|
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! |
|
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: http://nuevo.tourdecinefrances.net/events/ 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 Thanks! |
|
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 |
|
Hi, Yes it is possible to change Event Espresso /events/ slug, please see this guide: https://eventespresso.com/wiki/change-events-cpt-slug/ 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. |
|
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: http://nuevo.tourdecinefrances.net/event-category/francesa/ And this is how it should be looking (Event List using archive-espresso_events.php etc): http://nuevo.tourdecinefrances.net/cartelera/ 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 |
|
Hi, Regarding the event category slug, yes you can. We have a filter for it:
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? |
|
Thanks for that Dean, the category slug function worked a treat. I’m using the following theme: http://themify.me/demo/themes/event/ 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? |
|
Ah, just for reference, the URL to my category pages is now: http://nuevo.tourdecinefrances.net/tipo-de-pelicula/largo-francesa/ It’s taking on the layout option (there’s a few) that is specified in the theme’s options in the Admin. |
|
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? https://codex.wordpress.org/images/9/96/wp-template-hierarchy.jpg |
|
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.