Skip to content

Instantly share code, notes, and snippets.

@digitalinkwell
Created February 24, 2016 22:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save digitalinkwell/a741487f4c8698408c0c to your computer and use it in GitHub Desktop.
Save digitalinkwell/a741487f4c8698408c0c to your computer and use it in GitHub Desktop.
Post View Entry Meta
<div class="entry-meta">
<?php twentythirteen_entry_meta(); ?>
<?php
// adding page views after Meta Information
$post_id = get_the_ID();
$pageviews = get_page_views($post_id);
echo "$pageviews Views.";
// end of views
?>
<?php edit_post_link( __( 'Edit', 'twentythirteen' ), '<span class="edit-link">', '</span>' ); ?>
</div><!-- .entry-meta -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment