Help - Search - Members - Calendar
Full Version: How do I display the category as part of the post?
Movable Type Community Forum > Additional Resources > Tips and Tricks
icedrake
Ugly, ugly long topic title...

Anyway.

I'm trying to display the category of a post inside the post itself. Ideally, I want that to link to the by-category archive, which is thankfully already in existence.

What I need to know is the tag for categories (I think). If you know a better way, I'll be most grateful, especially since I'm not at all proficient in css.

Thanks!
girlie
Example from the manual on Template Tags:

CODE
This entry was posted in the following categories:
<MTEntryCategories glue=", ">
<a href="<$MTCategoryArchiveLink$>"><$MTCategoryLabel$></a>
</MTEntryCategories>


If you only assign one category per entry:

CODE
This entry was posted in <a href="<$MTEntryLink archive_type="Category"$>"><$MTEntryCategory$></a>


But either of those should go in your template, not inside your post, unless there's some reason you need it there? In which case, you'd need the Process Tags plugin.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.