Viewing 16 posts - 1 through 16 (of 16 total)
  • Author
    Posts
  • #8851
    Hervel
    Participant

    Hi,

    Before I used the plugin “BAW Post Views Count” I wish I could get the data of this one,
    I have over 700 postss, too much to take everything in hand.
    Thank you

    #8855
    Bartosz
    Keymaster

    Hmm.. they store the views data a bit differently, as far as i see in “_count-views_all” meta key.

    What if we provided a filter hook you could use to modify the meta key we import data from? Would you be able to handle that?

    #8856
    Hervel
    Participant

    Sorry, I do not speak English, I use the Google translator to write to you,
    you want me to use a code in SQL like this?
    https://wpbeaches.com/find-and-replace-across-whole-wordpress-site/

    #8858
    Bartosz
    Keymaster

    No.
    Contact us after the next update – there will be a filter hook available and i’ll tell you how to make a migration.

    #8863
    Hervel
    Participant

    okay but not curiosity, it was a code to functions.php of my theme or plugin?
    or MySQL?

    must be able to recover in the table wp_postmeta , meta_key views, to send in the table wp_postviews

    #8864
    Bartosz
    Keymaster

    Wait for the filter hook or make your custom sql query.

    #8865
    Hervel
    Participant

    I’ll wait, it’s just that the plugin has crashed, I tried uninstalling and reinstalling but nothing to see, all my counters returned to 0.
    you say “_count-views_all” meta key that I do not see in MySQL.
    That worries me a bit
    thank you

    #8867
    Bartosz
    Keymaster

    I said “_count-views_all” is used by BAW Post Views Counter, not our plugin.

    #8868
    Hervel
    Participant

    Hi,
    you have not understood, can be a problem with the translation.
    I do not see the “_count-views_all” field in my database with “BAW Post Views Counter”
    I was not talking about your plugin

    #8869
    Bartosz
    Keymaster

    Ok, it must be stored somewhere. Maybe ask BAW Post Views Counter developers where the data is stored.

    #8870
    Hervel
    Participant

    or because of the bug that has lost this column in my database,
    I have a backup, I’ll try to restore local stuff

    #8882
    Hervel
    Participant

    After Restoration, in loal, in wp_postmeta, i am meta key “_count-views_year-2015”.
    Good News !!

    After updating your plugin, it will do more to have a hook
    this style, it seems

    function update_metadata($meta_type, $object_id, $meta_key, $meta_value, $prev_value = '') {
        global $wpdb;
     
        if ( ! $meta_type || ! $meta_key || ! is_numeric( $object_id ) ) {
            return false;
        }
     
        $object_id = absint( $object_id );
        if ( ! $object_id ) {
            return false;
        }
    #8885
    Hervel
    Participant

    Hi,

    on the website of Julio Potier creator of the plugin
    from wp-postsview to its plugin, he gave this hook

    function modify_metakey_for_bawpvc( $data, $time )
    {
    return $time == ‘all’ ? ‘views’ : $data;
    }
    add_filter( ‘baw_count_views_meta_key’, ‘modify_metakey_for_bawpvc’, 10, 2 );

    http://boiteaweb.fr/plugin-post-views-count-3232.html

    If this can help you

    #8901
    Bartosz
    Keymaster

    Ok, use the just released 1.1.1 and add this to your functions.php

    // prepare to import post views data from BAW Post Views Count plugin
    function baw_pvc_import_meta_key( $key ) {
    	return '_count-views_all'; // or any other meta key you store the post views data
    }
    add_filter( 'pvc_import_meta_key', 'baw_pvc_import_meta_key' );

    Then go to PVC settings page an click Import from WP-PostViews button.

    Aftr the confirmation massage all your BAW data should be transferred to PVC.

    #8908
    Hervel
    Participant

    Hi,
    thank you but I did not feel like recover data despite the significant message of your plugin successful data
    meta key “_count-views_all” is in wp_postmeta
    or plugin “baw post views count” was a problem for some time that I did not realize.

    always impossible to show in home page can be the Hueman theme, which blocks

    #8929
    Hervel
    Participant

    Hi,
    I managed, I went on this site
    http://archive.org/web/
    then I saw a little upwards the figures.
    Before I was using WP-PostViews So I got this plugin too.
    one into the other is good.

    BAW Post Views Count is a concern, a number of messages in the media on WordPress.org, if you have a way to include the transferred to your plugin,
    by indicating this function on wordpress.org sheet
    https://wordpress.org/plugins/post-views-counter/
    may be you will have more users yet.
    I voted for your plugin, thank you very much for your help.

    solved for me!

Viewing 16 posts - 1 through 16 (of 16 total)
  • You must be logged in to reply to this topic.