0

I am rather novice to rewriting so I would appreciate some help.

I've set up a custom post type (teacher) in WP. Later, it was decided that its slug must be changed to (instructor). The problem is that the old slug is hardcoded in many posts as a url parameter. For example:

http://example.com/?teacher=teacher_name

I would like to set up a rewrite rule so that the above URL does not return a 404. It should be rewritten as:

http://example.com/?instructor=teacher_name

Is this possible? Any help would be great. Thank you very much.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.