Forum Replies Created

Viewing 1 replies (of 1 total)
  • This is how I fixed the problem – a bit involved, but it has worked for me and has eradicated the multiplication of imported posts.

    Look for this code in lib/class_wdgpo_google_auth.php (around line 300):

    private function _is_imported ($gplus_id) {
    		$posts = get_posts('meta_key=wdgpo_gplus_item_id&meta_value=' . $gplus_id);
    		return $posts ? true : false;
    	}

    Change it to this instead:

    private function _is_imported ($gplus_id) {
    	$posts = get_posts(
    		array(
    			'meta_key'    => 'wdgpo_gplus_item_id',
    			'meta_value'  => $gplus_id
    		)
    	);
    	if ( count($posts) > 0 ) return false;
    	else return true;
    }

    Next you will need to rid the database of duplicate posts. Look in the Posts table first and find any duplicate posts in there. Make a note of the ID of any duplicate posts and then delete them. Then go to the PostMeta table and look for the post_id with the same number(s) you just deleted in the other table. There should be 3 entries in here per post each having the same post_id that you deleted in the other table (wdgpo_gplus_feed_id, wdgo_gplus_item_id and wdgo_glus_author). Delete these as well.

    Finally, there is an updated version of this plugin (free) from here https://premium.wpmudev.org/project/google-1/. You will still need to fix the code as described above.

Viewing 1 replies (of 1 total)