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 Code showing and not linking?!?!?!?

September 09, 2010 9:21pm

Subscribe [3]
  • #1 / Sep 09, 2010 9:21pm

    futuristonline

    43 posts

    Hi
    Am building a site using EE 1.6.5 and I am having some issues with related fields which I have done like a million times before. Here is the situation.

    I am trying to get some images to randomly show on a page when the page is accessed (e.g. index.php). I have set up a gallery called Header Images. I have set up a custom weblog field called images and set that up as a Relationship field type linking to Header Images gallery.

    On my index page I have got the following code:

    <div id="image_wrapper">
    {exp:weblog:entries weblog="index" dynamic="off" limit="1" orderby="random"}
    {related_entries id="images"}
    {image_url}
    {/related_entries}
    {exp:weblog:entries}
    </div>

    When I got to preview, I am getting the {related_entries id="images"} code showing as if its not liking the code.

    Anyone any ideas?

    Regards

    Steve

  • #2 / Sep 10, 2010 9:27am

    Ingmar

    29245 posts

    Is there a particular reason for using this old version? Would it be possible to upgrade to a more recent version? Just to rule out file corruption and make sure we’re all on the same page in terms of code.

  • #3 / Sep 14, 2010 8:00am

    futuristonline

    43 posts

    Hi
    Sorry for the log reply.
    Have updated to 1.6.9 and still getting the same issue.
    Any ideas?
    Regards
    Steve

  • #4 / Sep 14, 2010 8:17pm

    Brandon Jones

    5500 posts

    Hi Steve,

    Are you testing with just that code in a template? Can you also temporarily disable extensions and test again, please?

  • #5 / Sep 17, 2010 4:21am

    futuristonline

    43 posts

    Finally worked out what the issue was and it was right there in the code:

    {exp:weblog:entries}

    I was missing the slash e.g.  {/exp:weblog:entries}

    This is what happens when you work late at night and the code all blends into one!

    Thanks for you help.

    Steve

  • #6 / Sep 17, 2010 10:36am

    Ingmar

    29245 posts

    Thanks for letting us know. Please post again as needed.

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

ExpressionEngine News!

#eecms, #events, #releases