[wp-testers] Changing tag name changes category with same name

1 view
Skip to first unread message

Joshua Hart

unread,
Mar 18, 2008, 4:41:23 PM3/18/08
to wp-te...@lists.automattic.com
I wasn't sure how tags and categories are differentiated from one another
within the database, but, I found the following behavior odd:
I have a tag titled "life" and a category titled "Life." I purposely name
my tags in all lower-case and my categories get the first letter
capitalized. However, I noticed that the tags listed for a particular post
of mine had one tag with a capital letter as it's first letter when I
specifically created it in all lower case. So, I changed the capitalization
for that tag. Well, now the category is in all lower-case. So I changed
the category back to have a capital letter as it's first letter and now the
tag matches the category's capitalization. And so it went.

Does anyone have any insight into this? I'm using revision 7379 and Safari
3.1 (although I don't think the browser would have anything to do with
this). Thanks

v/r,
Josh
_______________________________________________
wp-testers mailing list
wp-te...@lists.automattic.com
http://lists.automattic.com/mailman/listinfo/wp-testers

Lloyd Budd

unread,
Mar 18, 2008, 4:47:36 PM3/18/08
to wp-te...@lists.automattic.com
On Tue, Mar 18, 2008 at 1:41 PM, Joshua Hart <jahs...@gmail.com> wrote:
> I wasn't sure how tags and categories are differentiated from one another
> within the database, but, I found the following behavior odd:
> I have a tag titled "life" and a category titled "Life." I purposely name
> my tags in all lower-case and my categories get the first letter
> capitalized. However, I noticed that the tags listed for a particular post
> of mine had one tag with a capital letter as it's first letter when I
> specifically created it in all lower case. So, I changed the capitalization
> for that tag. Well, now the category is in all lower-case. So I changed
> the category back to have a capital letter as it's first letter and now the
> tag matches the category's capitalization. And so it went.
>
> Does anyone have any insight into this? I'm using revision 7379 and Safari
> 3.1 (although I don't think the browser would have anything to do with
> this). Thanks

Capitalization is a little more specific problem than what sounds like
a really bad problem in your title "Changing tag name changes category
with same name"

This isn't a new issue. I know this issue is reported in trac, and a
future release (not 2.5) is targeted.

Hope that helps,
--
Lloyd Budd | Digital Entomologist | | Skype:foolswisdom
WordPress.com | WordPress.org | Automattic.com

Jennifer Hodgdon

unread,
Mar 18, 2008, 4:58:15 PM3/18/08
to wp-te...@lists.automattic.com
The tag and category names, slugs, and IDs are stored together in the
DB in the Terms table, as of WP 2.2 (or was it 2.3?). When you create
a tag/category with the same URL slug as an existing tag/category, WP
recycles the term entry, and that looks like what has happened in your
case.

I'm not sure how to suggest separating them. You'd probably need to
delete either the category or the tag, then add it back again with a
non-matching slug (in 2.5, use the Tag or Category manage page to
explicitly define the slug when you define the tag/category, instead
of using the default slug, which is what happens if you use the Add
Category or Add Tag functionality on the post edit screen). My guess
is that if you just try to edit one of the slugs at this point,
they'll still be tied together, but you could try that too and see if
it works.

--Jennifer

Joshua Hart wrote:
> I wasn't sure how tags and categories are differentiated from one another
> within the database, but, I found the following behavior odd:
> I have a tag titled "life" and a category titled "Life." I purposely name
> my tags in all lower-case and my categories get the first letter
> capitalized. However, I noticed that the tags listed for a particular post
> of mine had one tag with a capital letter as it's first letter when I
> specifically created it in all lower case. So, I changed the capitalization
> for that tag. Well, now the category is in all lower-case. So I changed
> the category back to have a capital letter as it's first letter and now the
> tag matches the category's capitalization. And so it went.

--
Jennifer Hodgdon * Poplar ProductivityWare
www.poplarware.com

Drupal/WordPress Sites, Themes, Modules/Plugins
Custom Web Programming, Web Databases
Modeling/Analysis/Palm OS Software

Joshua Hart

unread,
Mar 18, 2008, 6:33:02 PM3/18/08
to wp-te...@lists.automattic.com
@Jennifer,
I figured that's what was happening - terms being tied to the slug field -
but, just wanted some validation. Thanks for the responses and I'll try
different slug names. Thanks again.

-Josh

On Tue, Mar 18, 2008 at 3:58 PM, Jennifer Hodgdon <yah...@poplarware.com>
wrote:

Reply all
Reply to author
Forward
0 new messages