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_categories_mode not working

November 21, 2012 10:37am

Subscribe [0]
  • #1 / Nov 21, 2012 10:37am

    verse

    26 posts

    Have a fairly basic template that outputs the main article and then should output three others from the same channel, however when using the following code nothing is output in the “Other partners” area, not even “No posts” so I’m really not sure what’s going wrong. There’s 5+ articles in the system so there’s definitely results to pull out, any ideas?

    {exp:channel:entries channel="partner" limit="1" url_title="{segment_3}"}
    
                  <article>
                    <h1>{title}</h1>
                    {profile_logo:banner wrap="image"}
                    {profile_body}
                  </article>
    
    {/exp:channel:entries}    
    
    <h2>Other Partners</h2>
    <p>{exp:channel:entries channel="partner" related_categories_mode="yes" custom_fields="yes"}<br />
       {if no_results}<br />
         No posts<br />
        {/if}<br />
                  <article><br />
                    <a href="http://{url_title_path=community/partners}">_                  {profile_logo:thumbnail wrap="image"}_                  </p><h3>{title}</h3><p>_                  {profile_body}_                </a><br />
                  </article><br />
                  {/if}<br />
                {/exp:channel:entries}

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

ExpressionEngine News!

#eecms, #events, #releases