Can custom post type permalinks use the same structure as normal posts?
-
I have a pretty simple question — I’m wondering if custom post types (say I have one called ‘news’) can use the same default permalink structure as the rest of the site.
Here’s an example:
My default permalink structure for the site is: /%year%/%monthnum%/%postname%/
Would it then be possible to create an entry in the post type ‘news’ that followed this same permalink structure? Such that it became: /2012/03/news-entry-title ?
I’ve messed around with a few solutions, and gleaning what I can from other questions on the forum. My initial feeling is that this can’t really be accomplished, at least not without a good bit of difficulty. For example, I played around with some code to create multiple custom permalink strings for my ‘news’ post type, and they all worked just fine — except when I changed the structure to mirror the default settings, as mentioned above. Then they 404’d.
At this point I’m not even worried about the code that would be needed to accomplish it. Just, is it even possible?
The topic ‘Can custom post type permalinks use the same structure as normal posts?’ is closed to new replies.