Hi folks,
I’m sure I’m overlooking something obvious but I can’t get the {title_permalink="" to work on a client's site. I'm using it in two places.
The first is in the sidebar to show recent posts. Here is the code:
{exp:channel:entries orderby="date" sort="desc" limit="5"}
<ul>
<li><a href="http://{title_permalink=channel/news}">{title}</a></li>
</ul>
{/exp:channel:entries}It only returns one title even though there are more articles than that in the news channel
The second way I’m using this is on the blog’s index. Here’s the code:
{exp:channel:entries channel="news" limit="6" status="Featured|open" paginate="bottom"}
<header>
<h2><a href="http://{title_permalink=news/article}">{title}</a></h2>
<p> </header><br />
<span class="date">{entry_date format="%F %d, %Y"}</span><br />
<article><br />
{news_excerpt}<br />
<a href="http://{title_permalink=news/article}">Continue reading »</a><br />
{paginate}<br />
<!-- Page {current_page} of {total_pages} pages {pagination_links} --><br />
<div id="paginate"><br />
{if previous_page}<br />
<a href="http://{auto_path}">Previous Page</a> <br />
{/if} <br />
{if {current_page} != '1' AND "{current_page}" != "{total_pages}" } | {/if} <br />
{if next_page}<br />
<a href="http://{auto_path}">Next Page</a><br />
{/if}</div><br />
{/paginate}</p>
<p> </article><br />
{/exp:channel:entries}When I click on either the title or the “continuing reading” link in any of the articles, I get directed to the most recent article in the news channel.
This is happening in both the development site on my computer and on the live site at Media Temple.
Any suggestions?