[wp-hackers] custom_post_type and custom taxonomy naming

scribu scribu at gmail.com
Sat Aug 21 16:37:41 UTC 2010


On Sat, Aug 21, 2010 at 4:49 AM, Angelia Baladon
<angelia at 10sexyapples.com>wrote:

> Logic is guiding me to create a custom post type called product, and
> assigning a custom taxonomy 'also called product' to it. I believe that I
> have seen this method recommended in some instances, but, wanted to do a
> double check with those more knowledgeable about the inner workings of WP
> before I committed to it. In my limited knowledge, I can't see where this
> identical naming would cause any problems, other than repetitive permalinks
> if not handled correctly, but, better safe than sorry~ Can anyone confirm
> for me that this is the way to go?
>

Having both a 'product' post type and a 'product' taxonomy will cause more
problems than you think. Don't do it!

You can rename the taxonomy 'products' if you want.


-- 
http://scribu.net


More information about the wp-hackers mailing list