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.

List of categories at the end of an entry

August 08, 2010 1:33pm

Subscribe [4]
  • #1 / Aug 08, 2010 1:33pm

    marianway

    24 posts

    Hello!

    This is probably very simple but I don’t seem to be able to figure out or find a way to achieve it:

    I want to output a simple list of categories an entry belongs to, e.g.:

    Entry title

    Entry body

    Posted in Category 1, Category 3, Category 7

    Please can you help?

    Thanks

  • #2 / Aug 09, 2010 1:38am

    John Henry Donovan

    12339 posts

    marianway,

    You will need to use the categories variable pair within your weblog:entries tags

    {exp:weblog:entries weblog="news" limit="1"}
    
    <h3>{title}</h3>
    
    <p>{body}</p>
    
    <p>{categories backspace="1"}Posted in {category_name},{/categories}</p>
    
    <p>{/exp:weblog:entries}

    Does that help?

  • #3 / Aug 09, 2010 8:17am

    marianway

    24 posts

    Thank you! I have got it working now. 😊

  • #4 / Aug 09, 2010 9:58am

    Sue Crocker

    26054 posts

    Glad John was able to help. Don’t hesitate to post again as needed.

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

ExpressionEngine News!

#eecms, #events, #releases