WordPress.org

Forums

WP-PostViews
[resolved] Imported posts from another WP site won't count (4 posts)

  1. ret
    Member
    Posted 1 year ago #

    Hi,

    if i import posts from another site, count of WP-PostViews is 1, always. If i create a new post, counting works as expected. Any ideas? Even if i recreate the custom field of an imported post, it wouldn't count (this was suggested in some older thread here). Running all the latest versions (WP, Plugin).

    Thanks!

    https://wordpress.org/plugins/wp-postviews/

  2. Lester Chan
    Member
    Plugin Author

    Posted 1 year ago #

    There might be duplicated "views" meta field in it and hence it is always 1.

  3. killmoves
    Member
    Posted 1 year ago #

    Hi,

    I've been having the same issue, same cause (imported posts).
    How to fix it?

    I don't mind losing all the views, because I am restarting the site fresh, but I want that every post get the views.

    Can you help me?

    Thanks
    PS I'm not very tech, so the simple thing it would be great!

  4. Lester Chan
    Member
    Plugin Author

    Posted 1 year ago #

    You need to run this query in the database DELETE FROM wp_postmeta WHERE meta_key = 'views';

    Please backup your database first in case any thing goes wrong,

    This will clear all views count and allow you to start all over again.

    Also ensure your theme has http://wordpress.org/support/topic/ensure-your-theme-has-wp_head-and-wp_footer-2?replies=2

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic