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 show the category name of the entry

November 11, 2010 10:52am

Subscribe [1]
  • #1 / Nov 11, 2010 10:52am

    Beebs

    207 posts

    I want to show the category name where any entry belong to.
    In EE v1, I simply using this :

    Filed under: {categories}  <a href="http://{path={my_template_group}/categories}">{category_name}</a> •{/categories}

    In EE v2, I am using this :

    Filed under: {exp:channel:categories channel="{my_channels}"}<a href="http://{path=channel/index}">{category_name}</a>{/exp:channel:categories}

    and it does not show up.

    Where do I go wrong?

  • #2 / Nov 11, 2010 6:29pm

    Rob Allen

    3114 posts

    Use exactly the same method as you were using for EE1 😊

  • #3 / Nov 11, 2010 6:58pm

    Beebs

    207 posts

    Well I did the same method as I wrote above, but It does not render the result.

  • #4 / Nov 11, 2010 7:29pm

    Beebs

    207 posts

    I use the solution I found here : http://ellislab.com/forums/viewthread/172931/ and It works. I thought this documentation : http://ellislab.com/expressionengine/user-guide/modules/channel/categories.html is the way to go for EE v2.

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

ExpressionEngine News!

#eecms, #events, #releases