I have a news menu which shows the 6 most recent news items…
I have successfully set it up so the current news item is not “linked” (see code below)
My Question: Instead I’d like to hide/remove this “current link” all together, so that if I’m on that page the link does not populate the list - but i still end up with a list of 6 news items (with the next most recent news item “joining the list”)...
I’m sure this is simple!
——————————————-
{exp:channel:entries channel="news" orderby="date" sort="desc" limit="6" dynamic="no" status="Open|Featured"}
<ul id=“subList”>
<li class=”{switch='first|second|third|fourth|fifth|last'}”>{if url_title != segment_2}{title}
{if:else}{title}{/if}
</li>
{/exp:channel:entries}
——————————————-
CHEERS