I just released a new plugin for WordPress this morning. It’s called ‘Custom Post Permalinks’. Custom Post Permalinks gives you the option of customizing the permalinks used by your non-hierarchical custom post types (post types that act like blog posts). The default permalink structure used for custom post types is
/post_type/name/, but with this plugin you can easily modify it to something more like
/post_type/year/month/name/. All of this is done through the admin section’s normal permalinks settings page, so you can manage all your permalinks in one place. Easy as pie!
Even better: if you add things like year and month (or day, hour and second!) to your custom permalink settings, it automatically sets up those archives! It also automatically adds permalink structures for feeds, comments, and pagination!
I’ll be setting up a static page for the plugin soon. Keep your eyes peeled.
Special thanks go out to Aaron Jorbin (@aaronjorbin) for helping me with the code. The plugin would be nowhere near where it is now without him. Also, if I hadn’t known he might be looking at it, I may not have documented it as thoroughly as I did…