[wp-hackers] changing the built in categories label on the add post screen

William P. Davis will.davis at gmail.com
Fri Nov 18 23:36:04 UTC 2011


This is getting complicated. Maybe just create a translation file?
Sent from my BlackBerry® wireless device

-----Original Message-----
From: Charles Frees-Melvin <charles.freesmelvin at me.com>
Sender: wp-hackers-bounces at lists.automattic.com
Date: Fri, 18 Nov 2011 19:31:10 
To: wp-hackers at lists.automattic.com<wp-hackers at lists.automattic.com>
Reply-To: wp-hackers at lists.automattic.com
Subject: Re: [wp-hackers] changing the built in categories label on the add
 post screen

Add a new taxonomy "topics" and then change in the _terms table all Categories to topics. That will convert what was category's to the topic taxonomy. Then just unregister the category tax or de-link it from the "post" post type.

--
Charles E. Frees-Melvin

Sent from my Rogers iPhone 4S

On 2011-11-18, at 19:18, IC IC <icwordpress at gmail.com> wrote:

> When you unregister, what happens to the existing categories that have been
> created?
> 
> Shall I just run this at the twentyten functions.php?
> 
> add_action( 'init', 'unregister_taxonomy');
> function unregister_taxonomy(){
>    global $wp_taxonomies;
>    $taxonomy = 'category';
>    if ( taxonomy_exists( $taxonomy))
>        unset( $wp_taxonomies[$taxonomy]);
> }
> 
> and after that, go find the post.php and change the label from categories
> to topics? is that a safe thing to do ?
> wouldn't this go away when we update the wordpress core though?
> 
> I want the label topics to stay permanently regardless of the updates..
> 
> 
> 
> 
> 
> On Fri, Nov 18, 2011 at 3:08 PM, Charles Frees-Melvin <
> charles.freesmelvin at me.com> wrote:
> 
>> You can't it is hard coded into wp-includes/post.php
>> 
>> The best option is to unregister categories and replace with a new tax.
>> 
>> --
>> Charles E. Frees-Melvin
>> 
>> Sent from my Rogers iPhone 4S
>> 
>> On 2011-11-18, at 18:59, IC IC <icwordpress at gmail.com> wrote:
>> 
>>> Which table stores the "categories" label?
>>> 
>>> I already changed the categories folder name from "category" to "topics"
>>> but the add post screen still display "Categories" as the label?
>>> I want to change that too to Topics.
>>> 
>>> When you create a custom taxonomies, this issue is not a problem cause it
>>> has the label argument.
>>> but since the categories already come pre-created, I need to make that
>>> change straight into the table!
>>> where do I do that?
>>> _______________________________________________
>>> wp-hackers mailing list
>>> wp-hackers at lists.automattic.com
>>> http://lists.automattic.com/mailman/listinfo/wp-hackers
>> _______________________________________________
>> wp-hackers mailing list
>> wp-hackers at lists.automattic.com
>> http://lists.automattic.com/mailman/listinfo/wp-hackers
>> 
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
_______________________________________________
wp-hackers mailing list
wp-hackers at lists.automattic.com
http://lists.automattic.com/mailman/listinfo/wp-hackers


More information about the wp-hackers mailing list