| View previous topic :: View next topic |
| Author |
Message |
schinckel
Joined: 03 Apr 2005 Posts: 1238 Location: Adelaide, Australia
|
Posted: Tue Feb 21, 2006 9:50 am Post subject: Popular Posts Links Incorrect |
|
|
My Popular Posts Links do not point to the correct posts. How do I fix this?
Replace your current Popular Posts code with the following:
| Code: | {popularposts}
{if $pposts != ''}
<ul>
<li>Popular Posts
<ul>{*counter assign=pp print=0*}
{foreach from=$pposts key=key item=hits}
<li><a href="{$hits.url}" title="{$hits.title}">{$hits.title|truncate:25:"..."}</a>: {$key}</li>
{/foreach}
</ul>
</li>
</ul>
{/if} |
Note that the HTML included may vary according to your template: often <h2> is used for headings for the Sidebar. _________________ Blogsome Forum: Rules/Search
WordPress Codex; Smarty Tags Docs |
|
| Back to top |
|
malakian
Joined: 25 Jan 2006 Posts: 5
|
Posted: Sat May 06, 2006 5:16 pm Post subject: |
|
|
| Thank you. |
|
| Back to top |
|
daviannita
Joined: 05 Jun 2006 Posts: 3 Location: Florida
|
|
| Back to top |
|
|