Posted: April 14, 2015 at 4:44 am
|
I feel very stupid since I am an experienced WP-developer but working with EE(4) for the first time and I can’t get the category pages to work. I tried adjusting the Permalink settings from /%postname%/ to /%category%/%postname%/, I tried creating archive-events.php and category-events.php templates, I tried switching languages (the website is in Dutch), I tried switching to the standard 2015 theme and I tried fooling around with the url by changing the ‘event-category’-part to all kinds of names but all I see is 404’s. Googling only finds me pages that explain EE shortcodes to call a specific category. I know how to do that but that would mean that I would have to create a page for every single category and paste the shortcode for that category in. Sounds not very efficient, there must be a better way since there is this built-in option to put links to event-categories in the menu. |
Hi Sabine, Can you provide an example of one of these category links you are using please? An example of the category link EE uses would be: http://example.com/event-category/example/ This would be for a category called ‘example’. |
|
|
Hi Tony, Thanks for responding. The site is still behind a login while in development but the links look like this: http://www.example.nl/categorieevenement/actief/ or if I switch to English http://www.example.nl/event-category/actief/ BTW there are upcoming events in the ‘actief’-category. |
Do you also have a page called ‘actief’ (be it published, draft or trashed)? |
|
|
No I don’t have a page, post or whatever with the name or slug ‘actief’. All the event category links give 404’s in this fresh WP 4.1.1 install with an underscores base theme (http://underscores.me). |
Hi Sabine, that is not expected behavior. Did you refresh permalinks when switching languages? This is needed since the slug is being changed. Also, I saw your note regarding a new install with the underscores theme. Does this happen on defaults with only Event Espresso running on a default theme? Here are the other slugs (when using pretty permalinks) for reference: Events listing page Single event page Event category page Venues listing page Single venue page Venue category page — |
|
|
Yes! Regenerating the permalinks after changing the language did the trick, it works now! Thank you so much Lorenzo. And thanks for the reference list, that will come in very handy indeed too. |
Glad this worked out for you Sabine. Enjoy your week! — |
|
The support post ‘Link to single event-category from menu not working’ 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.