Created
February 24, 2016 22:35
-
-
Save digitalinkwell/a741487f4c8698408c0c to your computer and use it in GitHub Desktop.
Post View Entry Meta
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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