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.

Category Headings

January 10, 2013 4:45pm

Subscribe [1]
  • #1 / Jan 10, 2013 4:45pm

    Scott Harrington

    85 posts

    Hi All

    I have two categories associated to a channel, ID 1 and ID 2.

    WIthin a template, I am using the category heading feature to head the page, which works fine…see below:

    {exp:channel:category_heading channel="courses"}
    <h2 class="page-introheader">{category_name}</h2>
    {/exp:channel:category_heading}

    This pulls in the relevant category from ID 1 to fill in the H2 tag of the page, which works fine and without specifying which group to pull from, it seems to correctly guess which one I require.

    However, I then have a series of posts within the same template that I need to use the category name from ID 2 only to output into an H3 tag…I have been through the docs and tried the numerous suggestions, specifying group etc but it seems to do the same as above ;(

    Does anyone have any ideas on how best to achieve what I’m trying to?

    Any help would be appreciated.

    Thanks

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

ExpressionEngine News!

#eecms, #events, #releases