PHP 1 min de lecture · 62 mots

StatTraq permalink support fix

I installed the statTraq plugin on 23rd September but I found a small issue with permalink url…The post id was not saved because I am using nice url…

Insert the following code just after $browser = statTraqGetBrowser(); (around line 37) in « wp-content/plugins/stattraq.php »….



if ($article_id == 0) { $post_id = url_to_postid($urlRequested); $article_id = ($post_id > 0 ? $post_id : $article_id); }

Une remarque, un retour ?

Cet article est vivant — corrections, contre-arguments et retours de production sont les bienvenus. Trois canaux, choisissez celui qui vous convient.

  1. For the record it’s caled StatTraq… StatTrack is a baseball (and possibly other sports) statistics managemtn program. In other words, it was taken 🙂