WordPress: Custom Post Permalink giving 404


In most of wordpress project we do, we have few custom post type and taxonomy. We use a nice plugin called “PODs” for the same. It is good plugin, we try some other in different project and most of them serve the purpose pretty well. But today we found something, or rather just an overlook stuff. In our project we need a taxonomy to hold “year” of manufacturing for product, client request that year to be a taxonomy (yes, out client is intelligent and know such stuffs. So?). We follow him and quickly create a taxonomy with slug “year”.

Now, what we did is we broke the permalink of wordpress. It either work for our custom post permalink or default wordpress page. We spend 5 hours to realise that “year” is one of wordpress keyword in sense that wordpress use it for “archive” or dated url permalink structure. I didn’t go in depth of why and what got it broken, but since wordpress use year it is bad idea to use it. Infact this post is reminder for me to not to use words like year, month, archive, category, date, day as my taxonomy of custom post type. They are just not good. Period.

And advice of word for pods, or any plugin that allow creation of such post type. PLEASE, put some validation to stop user from doing such things. User may not read this blog post soon.