I upgraded to premium hoping for a way to change the /event-category/ base slug because it conflicts with the church calendar plugin I’m using, it also uses a /event-category/ base slug so I get 404 errors. I’ve searched around and don’t get a clear answer to this specific issue. Any ideas?
I placed it, updated permalinks, cleared cache and still doesn’t pick up this new base slug… Here is my version… does it have to go in a specific spot in the functions.php file?
Your version isn’t valid because my_custom_event_category_basename is actually the function name. The function name can be whatever you want to call it, but it must be unique (or PHP will throw a fatal error). Also, the filter callback must match the function name.
In other words: If you want to change the function name to something like “yaegerhunter_custom_category_function”, your code will be:
The support post ‘How to change category base slug?’ 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.