• Hello,
    #1 I am wondering if we could bulk import the view count via an importer tool like wp all import. I have tried to find the meta key that stores the view count value but was not able to find it.

    #2 I am also looking for a way to sort by view count via filter plugins like wp gridbuilder. again, I can’t find the meta key from the panel. Is this plugin not using a meta key for the view counts number storage?

    thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Schermata-2022-05-22-alle-20-51-21
    When you activate the Post Views Counter plugin, the widget that shows the most viewed articles in the side column of the site is also activated.

    Plugin Author dFactory

    (@dfactory)

    PVC is not using metadata for storing the views. It would not be fast enough for large scale websites for which it is optimized for too.

    THe views are stored in a separate postviews table. If you use a plugin to migrate data then just export and import the above table too.

    Regarding your second question – you can do that even with a native WP queries. It works like other orderby parameters – just use get_posts or WP_Query and set “orderby” to “post_views” (note: it will work for post types that are being counted only)

    Finally “Import views” tool in the plugin – this was initially used to import views from WP-PostViews plugin but if you’re using something different that stores data in metadata you can change (using filter hook) a meta key from which the views count will be imported.

    Hope this helps.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Manually import view count via wp all import’ is closed to new replies.