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:

{popularposts}
{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 />
{/foreach}
{/if}


2 Comments

Mel on September 20, 2004 at 11:14 am.

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

Reply

Donncha (1707 comments.) on September 20, 2004 at 11:47 am.

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!

Reply

Leave Your Comment

Your email will not be published or shared. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>


Holy Shmoly! is Stephen Fry proof thanks to caching by WP Super Cache