Use only taxonomies in custom post type permalinks
-
Hello,
I’ve created custom post type ‘projects’ with the taxonomy ‘projecttype’ and I’m trying to get only the taxonomy into the permalink like this:https://www.url.com/%projecttype%/ -> as overview page for every taxonomy
https://www.url.com/%projecttype%/%postname%/ -> the single postEverything I tried results in things like:
https://www.url.com/projecttype/%projecttype%/ and https://www.url.com/projects/%postname/
where the slugs I’ve chosen in functions.php while registering the post type and the taxonomy is prependedSo how can I get now this permalink structure mentioned at first?
Another problem I encountered was that the post_type_link filter used with substituting a %placeholder% somehow affects all pages which results then in 404 errors for all other standard pages while this CPT thing still does not work.
Hope someone knows a solution to this one.
Regards,
DonTimo
- The topic ‘Use only taxonomies in custom post type permalinks’ is closed to new replies.