[Plugin: StatPress] Widget: move count AFTER post title
-
Hope that there’s a better way to do this (so I won’t run into problems with upgrades)
GOAL: show top post counts after the post title (not on a separate line)
HOW: In StatPress 1.4.1 change the following code in /wp-content/plugins/statpress/statpress.php:
TODO: move “/li” from line 1435 to line 1436ORIGINAL
foreach ($qry as $rk) { $res.="<li><a href='?".$rk->urlrequested."'>".iri_StatPress_Decode($rk->urlrequested)."</a><strong></li></strong>\n"; if(strtolower($showcounts) == 'checked') { $res.=" (".$rk->totale.")"; }
NEW
foreach ($qry as $rk) { $res.="<li><a href='?".$rk->urlrequested."'>".iri_StatPress_Decode($rk->urlrequested)."</a>\n"; if(strtolower($showcounts) == 'checked') { $res.=" (".$rk->totale.")<strong></li></strong>"; }
ENHANCEMENT REQUEST: Could you make this configurable?
- The topic ‘[Plugin: StatPress] Widget: move count AFTER post title’ is closed to new replies.