Importing from post meta?
-
Hi,
As you suggested i tried the code below:function custom_pvc_import_meta_key( $meta_key ) { // Use your meta-key here $meta_key = 'post_views_count'; return $meta_key; } add_filter( 'pvc_import_meta_key', 'custom_pvc_import_meta_key' );ive added it into my functions.php and i have a post metafield called ‘post_views_count’ with the corresponding post views.
However when clicking the import button (‘Override existing views data’ selected ) no data is imported into the ‘wp_post_views’ table.. What am i doing wrong?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Importing from post meta?’ is closed to new replies.