I’m trying to change the theme default slug “/course/”. For example when I create a course called Lesson A. The permalink is written in like /course/lesson_a/ right?
Now..
I wanted to change this “/course/” slug to something else say “/lesson/”. I’ve noticed even if I change the rewite value 'rewrite' => array( 'slug' => 'course' )
to 'rewrite' => array( 'slug' => 'lesson' )
defined in custom-post-types.php, the change is only reflected on the permalink shown in course editing view but in actual URL is still unchanged outputting “/course/lesson_a/” which means that when I go to /lesson/lesson_a/, the page outputs 404 Not Found.
I want this permalink to be “/lesson/lesson_a” to be alive and active.
Other permalinks which came from post_type such as testimonial, department and staff were able to overwritten by rewriting the slug written in custom-post-types.php. It seems like only this “/course/” slug that is seemingly impossible to change.
Your advise is appreciated.