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.

Related Entries not Working

January 24, 2011 11:35pm

Subscribe [2]
  • #1 / Jan 24, 2011 11:35pm

    Heather Musil

    51 posts

    Hello-

    I have a channel (locations) and I am trying to pull in different items from another channel (newscenter) to display but I can’t seem to make anything work. Here is my code (I took out all my formatting so its easier to see):

    {exp:channel:entries channel="locations" dynamic="on" limit="1"}
    
    {address}{logo}
    
    
    {related_entries id="centernews1"}
    {title}
    {/related_entries}
    
    
    {/exp:channel:entries}

    Can anyone see what I am doing incorrectly?

    Thank you!

  • #2 / Jan 25, 2011 5:11pm

    Sue Crocker

    26054 posts

    Hi, HKMUSIL.

    Can you tell us which version/build of EE2.x you’re using? See EEWiki:// HowTo Determine My EE Version

    Is centernews1 the name of the custom field that has the related entry information?

    Is there actually an entry there? Have you tried something like this:

    {if no_related_entries}
      <h2>No Related Entry Available</h2>
    <p> {/if}

    EEDocs: http://ellislab.com/expressionengine/user-guide/modules/channel/related_entries.html

  • #3 / Jan 25, 2011 7:03pm

    Heather Musil

    51 posts

    Hi Sue- Thanks for checking in but I figured it out. I should have closed the post.

    Heather

  • #4 / Jan 26, 2011 9:45am

    Sue Crocker

    26054 posts

    Hi, Heather. Glad things are working again. Don’t hesitate to post again as needed.

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

ExpressionEngine News!

#eecms, #events, #releases