Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #23613
    maico
    Participant

    Hi,

    I would like to place the post view, beside the author name in the single post (single.php) template.
    Would you please provide me with the code?

    Thank you

    #23670
    Eva88
    Participant

    Hi!

    Would also like to know which line of code I can put in a .php-file so I can place the Post View Counter anywhere on my website.

    Thanks!

    #23678
    maico
    Participant

    hi, anyone can help me and eva?

    thank you

    #23746
    Bartosz
    Keymaster

    You just have to put that function into your theme file: pvc_post_views();
    Optionally you can send a post_id parameter: pvc_post_views( 12 );

    #24553
    potato2018
    Participant

    I have used below code in single.php and settings to use Javascript (as will setup content cache later), will the view counting work?

    <?php echo do_shortcode(‘[post-views]’); ?>

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.