Support » Plugins and Hacks » [Resolved] Manually editing counter

[Resolved] Manually editing counter

Viewing 4 replies - 1 through 4 (of 4 total)
  • I need the same, please!!!

    I edited the output like below, and it works..

    <?php if (function_exists(‘wpp_get_views’)) {

    $var1 = 100;
    $var2 = 1000;

    $views = wpp_get_views( get_the_ID() );

    if ($views <= 100)
    $viewsx1 = $var1 + $views ;
    echo $viewsx1;
    $viewsx2 = $var2 + $views ;
    echo $viewsx2;


    Where did you place this code? I’d like to do something similar and alter the page view counts. Tried adding it to my template (with the WPPP code) but it didn’t work…

    Plugin Author Hector Cabrera


    That code can be used anywhere on your theme. The wpp_get_views template tag retrieves the views count for any post or page.

    I believe he’s using that code within The Loop (or a custom loop).

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] Manually editing counter’ is closed to new replies.