ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

how to:display category posted in, in entry title

October 18, 2007 7:30pm

Subscribe [1]
  • #1 / Oct 18, 2007 7:30pm

    jaydee

    69 posts

    I’m trying to post the category that a certain entry was posted to in my weblog.

    Basically, I have two categories setup, news and rumors.  I have one template which shows a listing of all entries, and then on the top of each entry I have a line that displays the following information:

    Posted by user in “Category” on Oct 18, 2007 - 09:52 AM • (0) Comments

    I basically got everything working except for the category portion and I’m unable to find a way to display this in the documentation, I think I’ve seen an example somewhere previously, but can’t seem to find it anymore.

    Any help would be much appreciated.

    Thanks.

  • #2 / Oct 18, 2007 9:38pm

    jaydee

    69 posts

    Just found a post using different search terms, don’t know why I didn’t see it before!

    For reference if anyone else needs:

    {categories}
    <a href="http://{path={my_template_group}/categories/}">{category_name}</a>
    {/categories}
  • #3 / Oct 18, 2007 9:40pm

    Lisa Wess

    20502 posts

    You might also like to read this article in the series on Dissecting the Default Templates. =)

    Glad you got it working!

  • #4 / Oct 18, 2007 9:59pm

    jaydee

    69 posts

    Hey, thanks Lisa!  Didn’t even realize you had a blog going on explaining all of the neat features of EE, now I’ll be reading up on it regularly! 😊

  • #5 / Oct 18, 2007 10:06pm

    Lisa Wess

    20502 posts

    Sounds good, and don’t hesitate to post if you have questions. =)

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases