On a single entry page, below the post-entry, I want the titles of four related articles, from the same category to be displayed. Instead, I get one title and it is the title of the article displayed in the single entry.
I have tried without the php code for stripping the category parent, I have tried dynamic off, took out exp widont - and can not think of any other changes in the template recently that could have caused this.
Thank you.
{exp:weblog:entries weblog="{my_weblog} | news" track_views="one" limit="1" disable="member_data|pagination"}
<h2>{title}</h2>
<p><div class="bodythree"><br />
{summary}<br />
{body}<br />
{link}<br />
{extended}<br />
</div></p>
<p><div class="posted">postad {entry_date format="%j/%n/%y"} <span class="italic"><a href="http://{permalink={my_template_group}/archive}">@</a></span> {entry_date format="%H:%i"} av {author} i <br />
{categories}<br />
<?php<br />
$lastcatname=" {category_name}";<br />
?><br />
{/categories}<br />
kategori <a href="http://{path=trade/index}"><?php echo $lastcatname; ?></a><br />
· skicka artikeln som <a href="http://{permalink={my_weblog}/tell}">e-mail</a><br />
</div></p>
<p>{exp:weblog:entries weblog="{my_weblog}|news" related_categories_mode="on" custom_fields="on" limit="4" orderby="date" sort="desc"}<br />
<ul class="titletwo"><br />
<li><h2 class="h2rel"><a href="http://{title_permalink={my_template_group}/article}{entry_date">{title}</a></h2><br />
{exp:trunchtml chars="160" inline="..."} {summary} {/exp:trunchtml } ... <a href="http://{title_permalink={my_template_group}/article}{entry_date">» Läs mer</a> <span>· postad {entry_date format="%j/%n/%y"} · {view_count_one} </span></li></ul><br />
{/exp:weblog:entries}</p>
<p></div>