[wp-hackers] The term_group column
Callum Macdonald
lists.automattic.com at callum-macdonald.com
Sat Oct 27 04:48:31 GMT 2007
I'm confused. How could two categories have the same slug? If they're
sub-categories of one another, or at different levels? Surely they'd
still have had different slugs in the previous implementation though?
Thanks for digging into this, the whole thing baffles me and I hadn't
gotten round to grepping the code to try and figure it out.
Cheers - Callum.
Christine Davis wrote:
> With a bit more digging, as part of the upgrade, it looks like categories
> that shared the same slug get put into a term_group (with the additional
> terms having a number added to the end of the slug). Which is at least an
> indication of its usage.
>
> Damned if I can see where term_group values are used for retrieval,
> though...
>
> On 10/27/07, Jacob <wordpress at santosj.name> wrote:
>
>> I agree. Writing the documentation for the taxonomy relationship
>> functions was difficult as I had no idea WTF the code was supposed to be
>> doing? Going off the names didn't seem to make sense of the matter
>> either. Without more context, I'm unsure how such relationships were to
>> be used. I'm sure that at some point I'll have to check through and
>> track through the code for some of them and see what the other taxonomy
>> functions use the relationship functions.
>>
>> It is perhaps in another section altogether. The dependencies in each
>> function aren't so much that it back tracking manually would be
>> difficult. It would give context, but that is a huge undertaking.
>> Without looking at the admin functions, it would be worth the effort if
>> someone else looked over the documentation to inform me if I'm wrong.
>>
>> I'm about finished with the taxonomy.php documentation and I suppose
>> I'll need to look more into this to make sure I get it correct now. Once
>> I'm done with that file, I'm never going back to it. I'm not going to
>> lie and say it is baby or something, I'm not mad as to torture myself
>> more than I need to with writing documentation.
>>
>> If anyone can explain the matter better, it would be extremely helpful.
>>
>>
>>
>> Christine Davis wrote:
>>
>>> Term groups kinda just float in space. I find that column and its
>>> functionality to be perplexing.
>>>
>>> *cough*
>>>
>>> It sure would be nice if a core-dev or some such could shed some light
>>>
>> on
>>
>>> how it was intended to be used/what it was included to be used
>>>
>> for; because
>>
>>> that sure would help my (our?) understanding.
>>>
>>> -Ch.
>>>
>>> On 10/27/07, Callum Macdonald <lists.automattic.com at callum-macdonald.com
>>>
>>> wrote:
>>>
>>>
>>>> Would that not require another table, term_groups to link them
>>>>
>> together?
>>
>>>> It seems a little weird to me. Maybe I need to look at the code
>>>>
>> again...
>>
>>>> - C.
>>>>
>>>> Christine Davis wrote:
>>>>
>>>>
>>>>> Looking at the code, if term 8 is an alias of term 6; then the
>>>>>
>>>>>
>>>> term_group
>>>>
>>>>
>>>>> for both term 6 and term 8 is the next term_group incrementally.
>>>>>
>>>>> (So if there were three term groups in use; term 6 and term 8 would
>>>>>
>>>>>
>>>> have a
>>>>
>>>>
>>>>> term group of 4.)
>>>>>
>>>>> Roughly speaking, it's not so much an alias (In so far as there is no
>>>>> primary term) as it is setting terms to be in a group together.
>>>>>
>>>>> -Ch.
>>>>>
>>>>> On 10/27/07, Callum Macdonald <
>>>>>
>> lists.automattic.com at callum-macdonald.com
>>
>>>>> wrote:
>>>>>
>>>>>
>>>>>
>>>>>> So what value would be set in term_group? If term 8 is an alias of
>>>>>>
>> term
>>
>>>>>> 6, does term 8's term_group = 6? What about term 6, does it's
>>>>>>
>>>>>>
>>>> term_group
>>>>
>>>>
>>>>>> show 0?
>>>>>>
>>>>>> Cheers - Callum.
>>>>>>
>>>>>> Christine Davis wrote:
>>>>>>
>>>>>>
>>>>>>
>>>>>>> It's for marking a term as being an alias of another term; in
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>> theory; but
>>>>>>
>>>>>>
>>>>>>
>>>>>>> last time I looked, the implementation seemed kinda broken.
>>>>>>>
>>>>>>> On 10/25/07, Callum Macdonald <
>>>>>>>
>>>>>>>
>>>> lists.automattic.com at callum-macdonald.com
>>>>
>>>>
>>>>>>> wrote:
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>> G'day,
>>>>>>>>
>>>>>>>> Is the term_group column actually used? Or is it provided for
>>>>>>>>
>> plugin
>>
>>>>>>>> use, future use, etc?
>>>>>>>>
>>>>>>>> I can't figure out how it would be used from the interface, and
>>>>>>>>
>> it's
>>
>>>>>>>>
>>>>>> not
>>>>>>
>>>>>>
>>>>>>
>>>>>>>> used in any of the blogs that I've checked.
>>>>>>>>
>>>>>>>> Cheers,
>>>>>>>>
>>>>>>>>
>>>>>>>> Callum.
>>>>>>>>
>>>>>>>> PS> This is curiosity more than anything!
>>>>>>>>
>>>>>>>> _______________________________________________
>>>>>>>> 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
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>> _______________________________________________
>>>> 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
>>>
>>>
>> --
>>
>> Jacob Santos
>>
>> http://www.santosj.name - blog
>> http://wordpress.svn.dragonu.net/unittest/ - unofficial WP unit test
>> suite.
>>
>> Also known as darkdragon and santosj on WP trac.
>>
>> _______________________________________________
>> 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