[wp-trac] Re: [WordPress Trac] #6542: Child Categories error out as
Duplicates
WordPress Trac
wp-trac at lists.automattic.com
Wed Apr 2 23:41:20 GMT 2008
#6542: Child Categories error out as Duplicates
-----------------------------------------+----------------------------------
Reporter: hxf148 | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.6
Component: Administration | Version: 2.5
Severity: major | Resolution:
Keywords: Child Categories Duplicates |
-----------------------------------------+----------------------------------
Comment (by hxf148):
From forums (wordmonkey):
I think there's a work around on this - I was using duplicate names for
categories and, again, it's essential for me that a child of one category
could have the same name as a child in the other.
I've managed to get around this by ensuring that the Category Slug for
each is different. That seems to be the element that Wordpress is checking
for duplicates. So make your two new categories but put a spelling mistake
or something in the category name of the second one. When it's made, go
back and edit the Category Name to the words you want but make sure to
also change the Category Slug to a corrected version with extra words in
it - maybe a reference to which parent it refers to or something like
that.
So in your example, you could make a child category Summer in parent
category Photos, no problem. When making the second, initially create it a
Sumer in Video. Then edit the category once it's made, correct the Sumer
to Summer and rename the slug to something like summer-videos.
Seems to work.
--
Ticket URL: <http://trac.wordpress.org/ticket/6542#comment:2>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list