Popular Posts Update

The popular posts plugin was broken, but it’s fixed now. Update your template so it looks like this if you want to use it:

{if $pposts != ''}
<br />Most Popular Posts<br /><br />
{foreach from=$pposts key=key item=details}
<nobr><a href="{$details.url}" title='{$details.title}'>{$details.title|truncate:30:"..."}</a>: {$key}</nobr><br />



2 Replies to “Popular Posts Update”

  1. Just tried it and when I try to access my blog I get:

    Fatal error: Smarty: [in index.html line 65]: syntax error: unidentified token ‘‘’’ (Smarty_Compiler.class.php, line 1228) in /home/ilug/blogs.linux.ie/htdocs/wp-inst/Smarty_Compiler.class.php on line 1824

  2. Looks like WordPress replaces “normal quotes” like ” and ‘ with “curly quotes”. When you copy and paste the above code into your template, Smarty won’t understand them.
    Replace the quotes with shift-2 and the character between ; and # (on a UK/Ireland keyboard anyway!)
    Not sure if the above quotes are going to be replaced either which is why I’m spelling out the characters!

Leave a Reply