[wp-hackers] Best approach

Diana K. Cury dianakac at gmail.com
Mon Sep 19 18:34:40 UTC 2011


Thank,

I'm think taxonomies should do, but is ok to add soo much items like cities? 
Is there limit?!

I found quite easy to populate the terms using insert_terms, but there is 
someway to insert taxonomies within a prent one?!


----- Original Message ----- 
From: "Otto" <otto at ottodestruct.com>
To: <wp-hackers at lists.automattic.com>
Sent: Monday, September 19, 2011 2:55 AM
Subject: Re: [wp-hackers] Best approach


> On Sun, Sep 18, 2011 at 11:26 PM, Diana K. Cury <dianakac at gmail.com> 
> wrote:
>> I'm using taxonomies for country States in my plugin, what could be te 
>> best approach for allow users to select cities?
>>
>> There are a lot of cities, so taxonomies can handle this, at all? Or 
>> metadata should keep this?
>>
>> Taxonomies could handle cities within (hierarchical taxos), but not sure 
>> if too much taxonomies will work.
>
> That depends on how you're using them.
>
> Are the names of these cities important *as data*? That is, are you
> displaying them, ordering by them, doing anything on the string of the
> city name itself?
>
> If so, then use meta instead. If not, then taxonomies are fine.
>
> Taxonomies are all about the *grouping* of the objects in them. If the
> group is more important than the label of the group, then taxonomies
> are the way to go. If the label itself is meaningful data in the sense
> of it being data that you're using in some other way, then meta is
> better.
>
> -Otto
> _______________________________________________
> 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