Tagged: 

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #7315

    hi There, I have installed this plugin (WP-PostViews) as I would like to display the number of post views for users, I would like the number of post views to appear alongside the Date of the post and the number of comments.

    Where do I paste the ‘<?php if(function_exists(‘the_views’)) { the_views(); } ?>’ to make it show alongside the number of comments please?

    many thanks

    #57481

    Hey,

    I’d include it somwhere between:

    <span class='comment-container minor-meta'>

    and:

    </span>
    <span class='text-sep'>/</span>

    in includes/loop-index.php (maybe you want to add the “text-sep” span to it too).

    #57482

    many thanks, which page shall I add this to please?

    When I searched the single.php the ‘<span class=’comment-container minor-meta’>’ is not there, thanks Dude

    #57483

    :-) its OK, I found it in the ‘loop-index.php’ :-) much appreciated Dude, it works, is there a way to add an ‘/’ between the number of views and the number of comments?

    #57484

    Yes – you need to add:

    <span class=’text-sep’>/</span>

    before your code.

Viewing 5 posts - 1 through 5 (of 5 total)

The topic ‘How to add the WP-PostViews plugin to the Corona theme’ is closed to new replies.