Custom Post Type – Permalink 404
-
My WordPress installation is in the directory
/blog/
. I’ve successfully added the custom post typecase_study
infunctions.php
using this code: https://pastebin.com/rFwkfUmVwhich gave this permalink structure:
…/blog/?case_study=hello-world
I changed the rewrite argument to
'rewrite' => true,
which successfully changed the permalink structure to:
…/blog/case_study/hello-world/
but it gives a 404 error saying
You tried going to …/blog/blog/case_study/hello-world/, and it doesn’t exist.
I then modified it again like so:
'rewrite' => array('slug' => 'case_study', 'with_front' => true, ),
and still got the same 404.
Any idea on how to fix this?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Custom Post Type – Permalink 404’ is closed to new replies.