Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author dFactory

    (@dfactory)

    Just install and go to settings. You have an option to set the views interval (Time Between Counts). If you set it to 100 year it will be close to unique ??

    But you have to keep in mind that this is a simple plugin – if you need something precise use Google Analitycs or Piwik

    Thread Starter spmtumblr

    (@spmtumblr)

    Yup, just found it, your plugin is perfect! and thanks for the quick reply.

    btw just 1 more thing is it possible to get just the view count without the html? currently when i use

    <?php pvc_post_views(); ?>

    it echoes

    <div class="post-views post-5783 entry-meta">
    <span class="post-views-count">0</span>
    </div>

    i only want “0” i.e. just view count, can you please tell me how can i do that?

    Thanks.

    Plugin Author dFactory

    (@dfactory)

    There’s a function for that: pvc_get_post_views() or pvc_get_post_views($post->ID) with $post->ID as parameter.

    All this can be found in plugin folder/includes/functions.php

    Thread Starter spmtumblr

    (@spmtumblr)

    I just tried both unfortunately they both render nothing ??

    <?php pvc_get_post_views($post->ID); ?>

    alsotried
    <?php echo pvc_get_post_views($post->ID); ?>

    still nothing ??

    am i entering the code right?

    p.s. i am entering the code just where i entered the previous one “<?php pvc_post_views(); ?>” which was rendering the views just right.

    Plugin Author dFactory

    (@dfactory)

    And where is this code located? Is it single post template file?

    Does echo $post->ID output anything?

    Thread Starter spmtumblr

    (@spmtumblr)

    <?php echo pvc_get_post_views($post->ID); ?>
    Worked on Single Post Page

    and

    <?php echo pvc_get_post_views(); ?>
    Worked on Index Page

    Happy Ending ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘is it possible to count unique views somehow?’ is closed to new replies.