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

    (@dfactory)

    Yes, of course.

    All the public function are located in plugin includes/functions.php/

    For example pvc_get_post_views(), pvc_post_views(), pvc_get_most_viewed_posts(), pvc_most_viewed_posts().

    These are pluggable functions as well, so you can override it’s output if you need to. However each one has filters to do the same without copying the files.

    Hello, dFactory!

    I’ve an issue with the plugin… it gets duplicate when I use a post different than “default”, in this case “video” post.

    EDIT:

    For everyone! In settings use the manual position and after the article in single.php paste this: <?php echo do_shortcode (‘[post-views]’);?>

    That fix my problem with double location with another posts than “default”.

    Plugin Author dFactory

    (@dfactory)

    Or you can use the functions I mentioned above.

    how to make it appear in one line?
    when i add it, i.e. next to the date, it goes into other line…

    Plugin Author dFactory

    (@dfactory)

    The easiest way would be to call: pvc_get_post_views() function and then output the result styled the way you want to.

    You may also give it a post ID parameter to get views for any specific post, for eg.: echo pvc_get_post_views( 24 ) for post of ID 24. If you don’t provide the ID parameter, the plugin tries to get the ID automatically (from the global $post).

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘PHP for inserting counter into theme?’ is closed to new replies.