[wp-hackers] custom_post_type and custom taxonomy naming

Mike Schinkel mikeschinkel at newclarity.net
Sat Aug 21 20:11:28 UTC 2010


On Aug 21, 2010, at 2:37 PM, scribu wrote:
> On Sat, Aug 21, 2010 at 8:40 PM, Mike Schinkel
> <mikeschinkel at newclarity.net>wrote:
> 
>> On Aug 21, 2010, at 12:37 PM, scribu wrote:
>>> Having both a 'product' post type and a 'product' taxonomy will cause
>> more
>>> problems than you think. Don't do it!
>> 
>> Can you be more specific?  What problems would someone experience, exactly?
> 
> Besides the rewrite ones already mentioned by Angelia, I've also experienced
> query related problems in the admin side. These could potentially be avoided
> if you set a different query_var for each, but there might be other, even
> more subtle problems that I'm not aware of.

Gotcha. I haven't had that problem because I set rewrite to false for the taxonomy.

But I think this is a use-case where the edges have not been polished yet and we should fix that, not mark it as a "never do."  

For example, having a "product" taxonomy *could* give a list of posts at http://example.com/products/ and then each "product" post could display at http://example.com/products/ 

That said, if the taxonomy terms are not mirroring the posts then I agree, people shouldn't do it.

-Mike



More information about the wp-hackers mailing list