Movable Type: Specify one category to display in entry

Posted by kohei on Stack Overflow See other posts from Stack Overflow or by kohei
Published on 2010-05-21T07:33:23Z Indexed on 2010/05/21 7:40 UTC
Read the original article Hit count: 193

Filed under:

Hi

I want to specify one <CategoryLabel> in <MTEntryCategories> in archive template.

For example my categories are like this (x is selected category in entry):

Fruit --Apple --Grape

Drinks --Coffee -x-Beer --Juice

Vacation --France -x-UK

In this case I want to display the label under "Drinks" in a entry (sample code)

<MTSubCategories category="Drinks">
   <MTEntryCategories>
       <h1><$MTcategory_label$><h1>
   </MTEntryCategories>
</MTSubCategories>

I know there are various plugin that do this but I couldn't find one that supports MT5. If anyone know if there is a way to do this without the plugins, greatly appreciated!

© Stack Overflow or respective owner

Related posts about movabletype