WordPress.org

Ready to get started?Download WordPress

Forums

WP-PostViews
PostView 1.6.2 Wont display on single post. (3 posts)

  1. thisizskeet
    Member
    Posted 1 year ago #

    I can not get PostView to display on the actually post. It displays on the index file but not on the singles.php file. Not sure if I am placing the code in the correct position. My site is http://themediajunky.com

    http://wordpress.org/extend/plugins/wp-postviews/

  2. sniperdusk
    Member
    Posted 1 year ago #

    On the post or page file (or in your case "singles.php") just decide were you'd like the view-counter to show up in your layout and add

    <?php if(function_exists('the_views')) { the_views(); } ?>

    to the template. (Either at the top by the title or after the regular content on the bottom are usually good places.)
    And if you ever change your theme in the future, be sure to revise those new template pages, too.

  3. Socrat1s
    Member
    Posted 1 year ago #

    it would be much better if we could place it where ever we wanted in the post with a shortcode :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.