有一个相当基本的模板,可以输出主要文章,然后应该从同一频道输出其他三个,但是当使用以下代码时,“其他合作伙伴”区域没有任何输出,甚至没有“无帖子”,所以我真的没有确定出了什么问题。系统中有 5 篇以上的文章,所以肯定有结果要提取,有什么想法吗?
{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>
{exp:channel:entries channel="partner" related_categories_mode="yes" custom_fields="yes"}
{if no_results}
No posts
{/if}
<article>
<a href="{url_title_path='community/partners'}">
{profile_logo:thumbnail wrap="image"}
<h3>{title}</h3>
<p>{profile_body}</p>
</a>
</article>
{/if}
{/exp:channel:entries}