WordPress.org

Ready to get started?Download WordPress

Forums

Page View Count
Manually Adding PHP Makes All Pages Count Together? (4 posts)

  1. truelux
    Member
    Posted 1 year ago #

    I'm using the <?php pvc_stats_update( $postid, 1 ); ?> code within my theme, but whenever 1 page gets a hit so do all the others.

    What do I have to add to make it so the count is individual? I can "Activate on these Custom Post Types" but the counter appears really low on the page, so I need to manually place it higher.

    http://wordpress.org/plugins/page-views-count/

  2. mbapot
    Member
    Posted 1 year ago #

    Same problem!!!

  3. The Nutz
    Member
    Posted 5 months ago #

    I have this problem too but i solved like this
    <?php $postid = get_the_id(); pvc_stats_update( $postid, 1 ); ?>

  4. Evan Herman
    Member
    Posted 5 months ago #

    Too anyone else facing this problem, I was able to solve it by doing:

    $stats = new A3_PVC();
    echo $stats->pvc_stats_counter($post->ID);

    or as The Nutz suggests :

    pvc_stats_update( $post->ID, 1 );

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.