Change permalink when page category selected in admin
I decided on a different approach. Keep the default permalinks in admin, then add a rewrite to allow /course: add_rewrite_rule(‘^course/([^/]*)/?’, ‘index.php?event=$matches[1]’, ‘top’); // single event Then I can update my theme templates with the course/ urls where needed.