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.

Show Child category for given entry

November 22, 2011 5:21pm

Subscribe [1]
  • #1 / Nov 22, 2011 5:21pm

    Hello,

    Is there a way to ONLY show a child category for an entry within an entries loop?

    Lets say I have categories such as:

    * Blog
      * design
      * work
      * something else

    * Social
      * lastfm
      * flickr

    I then submit a post to the child cat, design.

    Then my entries loop:

    {exp:channel:entries channel="tumblelog"}
    {categories}
    
     {category_name} <!-- outputs : blog design -->
    
    {/categories}
    {/exp:channel:entries}

    This outputs, blog, design… BUT I only want to ever show the single, child category for a given entry… NEVER showing the parent category.

    Is this possible?

  • #2 / Nov 22, 2011 5:33pm

    Note it vital I keep “Auto-Assign Category Parents” on as I do need this relationship elsewhere.

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

ExpressionEngine News!

#eecms, #events, #releases