[wp-hackers] get_terms() & 'term_group'
ronin at braydon.com
Sat Jul 16 22:41:00 UTC 2011
Interesting, I wonder if this would have added benefits for SEO for
On 07/16/2011 02:12 PM, Otto wrote:
> Term aliasing is one of those things that nobody really uses, but it's
> left there because there's some ideas floating around it that could be
> useful for somebody.
> Basically, the idea is to group terms together showing that they're
> related or similar or the same or something. For example, if I went to
> /tags/wordpress then maybe it'd be nice to get posts with the tag "WP"
> as well. If those two terms were in the same group, then I might be
> able to do something like that.
> Marking terms as aliases is there and works. How you can use that term
> grouping is not really in there at all. That's more advanced
> functionality that needs to be fleshed out and rethought before
> becoming core code.
> On Sat, Jul 16, 2011 at 2:22 PM, Jackson Whelan<jw at jacksonwhelan.com> wrote:
>> On 7/16/11 1:17 PM, 24/7 wrote:
>>> I was just looking the Codex  article and found 'term_group' as valid
>>> value for 'order_by'. Now I question how& where I would set a term_group.
>>> Any idea?
>>>  http://codex.wordpress.org/Function_Reference/get_terms
>> Quoting Otto  :
>> "From the interface side of things, it's not used for anything at all.
>> However, internally, it's possible to create terms that are aliases of other
>> terms. These terms will then be in the same term group, showing that they're
>> really the same term.
>> There is no real use for it at this point. It's there for potential future
>> functionality and for plugins.
>> If you are a plugin programmer and know how WP works, then you can add an
>> alias_of parameter to the call to wp_insert_term(). The alias_of specifies
>> the slug of the term that the new term you're inserting will be an alias of
>> (and so which will share a term_group). Same parameter works on
>> wp_update_term() too."
>>  http://wordpress.org/support/topic/term-group-column
>> See also this archived thread on wp-hackers:
>> Hope that helps.
>> - Jackson
>> wp-hackers mailing list
>> wp-hackers at lists.automattic.com
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
More information about the wp-hackers