WordPress.org

Ready to get started?Download WordPress

Forums

StatPress
Widget: move count AFTER post title (1 post)

  1. DJF3
    Member
    Posted 3 years ago #

    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 1436

    ORIGINAL

    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?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags