How much control do we have over CPT rewrite slugs? Can I create a “root” page for my CPT with out the page path, and then have paths for other pages?


Say I have a CPT called I dunno, "Library" which is just a set of "pages" ("has_archive" => false) and the rewrite slug is "library". I also intend to have a set of pages like "about", "archive", and "new books".

Can I do something so that I make a page called "home" and instead of its url being could it be And then the about page would have the url of

And if I made a second CPT, "library-books" would there be away to set its rewrite slug to "library/books" or would I need a totally different path? so I would want to be the archive for the "library-books" CPT and then for the individual book posts.

rugbert 2 months 0 Answers 11 views 0

Leave an answer