WordPress.org

Ready to get started?Download WordPress

Forums

Top 10 - Popular posts plugin for WordPress
[resolved] [Plugin: Top 10] How do I add to the counter? (4 posts)

  1. evandunn
    Member
    Posted 3 years ago #

    Hello,

    Loving the plugin so far. Here's what I'm trying to figure out. I have a website that has an old counter value that I want to add to this new counter value. I was hoping I could do this in the php of the plugin by calling the contents of the custom field and adding them to the numerical vale of the top 10 counter, but all i've managed to get it to return is 0 or nothing when I change the code for the tptn_disp_count() function in top-10-counter.js.php

    Any advice?

    Thanks,
    Evan

    http://wordpress.org/extend/plugins/top-10/

  2. evandunn
    Member
    Posted 3 years ago #

    The solution was just to export the old counter into the new counter's mysql field using the backend. Not a great solution, but I suppose it's well enough.

  3. ruiwy1
    Member
    Posted 3 years ago #

    Hi,

    I'm interested on doing that, I wanna port my previous data collected by WP stats to Top 10. Can you make a tutorial for dummies?

    Thank you so much!

  4. Daedalon
    Member
    Posted 2 years ago #

    Ruiwy1, my reply in How to convert hits from top 10 plugin is related.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags