• This is a great Plugin!
    but I have a problem:

    The plugin makes counting views, each time you visit one entry only if the user is logged in.
    for the case that the user are not logged in:
    account only the first visit to each post, but then not count visits to the same post.

    Please can you give me a help about how to fix this!

    I like that always count visitors to the post, no matter if they are activated or not.

    I do not have any cache pluging installed.

    https://www.ads-software.com/plugins/page-views-count/

Viewing 1 replies (of 1 total)
  • Altering some code I used to check if the user is an admin, you can exclude page counts from users who are not logged in by doing the following :

    // check if the current user is logged in
    if ( is_user_logged_in() ) {
    
       // if so, update and display stat counter
       pvc_stats_update( $post->ID, 1 );
    
    } else {
    
       // initialize the stat counter class
       $stats = new A3_PVC();
    
       // otherwise, display but do not update stat counter
       echo $stats->pvc_stats_counter( $post->ID );
    
    }

    Evan

Viewing 1 replies (of 1 total)
  • The topic ‘Not count users not logged in’ is closed to new replies.