Title: Help With Code
Last modified: August 24, 2016

---

# Help With Code

 *  [lazyorganizer](https://wordpress.org/support/users/lazyorganizer/)
 * (@lazyorganizer)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/help-with-code-14/)
 * Can you help someone that knows very little about html?
 * Exactly where do I put the code? Can you post a screenshot? Maybe that would 
   help.
 * php get_post_meta( $post->ID, ‘views’, true );
 * Thank you !
    Lara
 * [https://wordpress.org/plugins/wp-stats-view-counter/](https://wordpress.org/plugins/wp-stats-view-counter/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Adam Capriola](https://wordpress.org/support/users/adamcapriola/)
 * (@adamcapriola)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/help-with-code-14/#post-6068264)
 * If you don’t much very much about html or coding, you should probably find a 
   developer to add the code for you. Your theme’s files likely need to be edited.
 *  Thread Starter [lazyorganizer](https://wordpress.org/support/users/lazyorganizer/)
 * (@lazyorganizer)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/help-with-code-14/#post-6068269)
 * **I think I can add it myself if you would just tell me where to put it. **
 * Is it single.php and page.php?
 * **Does the code look like this? **
 *     ```
       <?php get_post_meta( $post->ID, 'views', true );  ?>
       ```
   
 * **
    If this is my code for single.php, where does it go?
 *     ```
       get_header(); ?>
   
       	<div id="primary" class="site-content">
       		<div id="content" role="main">
   
       			<?php while ( have_posts() ) : the_post(); ?>
   
       				<?php get_template_part( 'content', get_post_format() ); ?>
   
       				<nav class="nav-single">
       					<h3 class="assistive-text"><?php _e( 'Post navigation', 'twentytwelve' ); ?></h3>
       					<span class="nav-previous"><?php previous_post_link( '%link', '<span class="meta-nav">' . _x( '&larr;', 'Previous post link', 'twentytwelve' ) . '</span> %title' ); ?></span>
       					<span class="nav-next"><?php next_post_link( '%link', '%title <span class="meta-nav">' . _x( '&rarr;', 'Next post link', 'twentytwelve' ) . '</span>' ); ?></span>
       				</nav><!-- .nav-single -->
   
       				<?php comments_template( '', true ); ?>
   
       			<?php endwhile; // end of the loop. ?>
   
       		</div><!-- #content -->
       	</div><!-- #primary -->
   
       <?php get_sidebar(); ?>
       <?php get_footer(); ?>
       ```
   
 *  Plugin Author [Adam Capriola](https://wordpress.org/support/users/adamcapriola/)
 * (@adamcapriola)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/help-with-code-14/#post-6068271)
 * You can try putting this above comments_template:
 * `<?php get_post_meta( get_the_ID(), 'views', true ); ?>`
 * I don’t know where you want it positioned though. You’ll have to move it around
   until you get it where you want it.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Help With Code’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-stats-view-counter_fcfcff.svg)
 * [WordPress Stats View Counter](https://wordpress.org/plugins/wp-stats-view-counter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-stats-view-counter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-stats-view-counter/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-stats-view-counter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-stats-view-counter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-stats-view-counter/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Adam Capriola](https://wordpress.org/support/users/adamcapriola/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/help-with-code-14/#post-6068271)
 * Status: not resolved