WordPress.org

Ready to get started?Download WordPress

Forums

Jetpack Post Views
[resolved] Does not show views for all posts (6 posts)

  1. sijo55
    Member
    Posted 12 months ago #

    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)
    See image

    http://wordpress.org/extend/plugins/jetpack-post-views/

  2. Steven Lambert
    Member
    Plugin Author

    Posted 12 months ago #

    Interesting. Just to make sure, do the posts that are not displaying post views have a post type of "post"? If they are anything else, the plugin does not keep track of their data.

  3. sijo55
    Member
    Posted 12 months ago #

    They are all the same and should show views..

  4. Steven Lambert
    Member
    Plugin Author

    Posted 11 months ago #

    ALright, I think I might have found at least where the issue is occurring. Do they still show as blank and not a number for views? I'm curious to know if it is just that they are at 0 views and I need to just fix that. If they do not have 0 views, please let me know.

  5. sijo55
    Member
    Posted 11 months ago #

    Every article has views, but some are shown as blank..

  6. Steven Lambert
    Member
    Plugin Author

    Posted 11 months ago #

    Let me know if this is fixed in the new version

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.