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.

display entry custom field within category

May 28, 2012 4:44pm

Subscribe [2]
  • #1 / May 28, 2012 4:44pm

    bootsy

    7 posts

    Hi all,
    I’m a new EE user and am loving it so far, but I find I’m getting so far and then hitting a brick wall when it comes to categories, basically I have a number of entries assigned to/with specific categories, I have a section on the site where I need to display an “overview” page where I want to display all the entries in a specific category which I can do, the problem is I need to display a custom field within the entries as well.

    When using the channel entries tag this is simple however I cant find a way to accomplish this using the channel:categories tag.

    eg: each entry has a “summary” custom field (kinda like a blog excerpt) and when displaying all the entries in a particular category I need to output this custom field as well

    Is this even possible?

    Any help gratefully received
    thanks in advance

  • #2 / May 29, 2012 4:23am

    Rob Allen

    3114 posts

    Can you post your code?

    Adding custom fields is quite straightforward. In the template you use to view category based information simply use a Channel entries loop:

    {exp:channel:entries channel="mychannel"}
    <h2>{title}</h2>
    <p>{my_custom_field}<br />
    {/exp:channel:entries}

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

ExpressionEngine News!

#eecms, #events, #releases