I started using this plugin yesterday and it will not show views for all posts.
I’m using this line in single.php :
echo get_post_meta( $post->ID, 'jetpack-post-views', true ) . ' visninger';
In my frontpage I’m using this line in misc-function.php :
get_post_meta( get_the_ID(), 'jetpack-post-views', true );
I had to use “get_the_ID()” instead of “$post->ID” to make it work here.
The problem is that it only shows some post views, not all. And that goes for both single and front page.
Please see attached image that shows part of my front page. (visninger = views in english)
- The topic ‘Does not show views for all posts’ is closed to new replies.