Viewing 1 replies (of 1 total)
  • Plugin Author dFactory

    (@dfactory)

    Sure you can.

    There is a pvc_import_meta_key filter hook available. It is used to import views from WP-PostViews plugin. But it just returns a meta key where the WP-PostViews stores views count.

    If you know where your theme or plugin stores views data (what is the meta key name) jsut do as follows.

    1. Paste this into functions.php of your theme, giving your meta_key name:

    function custom_pvc_import_meta_key( $meta_key ) {
    	// use your meta key here
    	return 'my_post_views';
    }
    add_filter( 'pvc_import_meta_key', 'custom_pvc_import_meta_key' );

    2. Go to PVC plugin settings and click Import in WP-PostViews option.
    3. Done
    4. (optional) remove the code used in step 1.

    Regards,
    Bartosz / dfactory team

Viewing 1 replies (of 1 total)
  • The topic ‘Import post view from postmeta to Post Views Counter plugin?’ is closed to new replies.