Permalink Structure for Custom Post Types
-
I’m using quite a few custom post types on a site I’m developing. The issue I’m having is that it will not write the correct URL’s.
My Permalink structure is: /%year%/%monthnum%/%category%/%postname%/
Now, this works fine for the general “Post”. But when it comes to custom post types, which need to use their own taxonomies, I’m unable to have the proper output.
One of the post-type names is ‘cooking’.
So the output needs to be: website.com/cooking/dinner/post-name
“Dinner” being the Category that should be outputted by the permalink structure.
Does anyone know how to fix this? i’ve tried numerous different methods with the functions file and re-write plugins but nothing is working.
Is there no way to output the category name for a custom post type in the Permalink?
The only way it seemed to be ‘fixed’ was if I utilized the original “Categories” connected to POST. Being as there are going to be so many different post-types that contain numerous different sections, I can’t have the default Category setup, I need to have it display via the custom post-type.
Any help would be greatly appreciated!
- The topic ‘Permalink Structure for Custom Post Types’ is closed to new replies.