Widget showing the same post multiple times
-
I had the same problem as the previous [resolved] post. Based on the advice in there I have updated the plugin to behave correctly. I believe the custom post type was causing an issue since that is now required, but I’m no expert so don’t quote me on it.
File:
lib/class_wdgpo_google_auth.phpReplace @ ~line 295:
private function _is_imported ($gplus_id) { $posts = get_posts('meta_key=wdgpo_gplus_item_id&meta_value=' . $gplus_id); return $posts ? true : false; }
With:
private function _is_imported ($gplus_id) { $posts = get_posts( array( 'meta_key' => 'wdgpo_gplus_item_id', 'meta_value' => $gplus_id, 'post_type' => array('wdgpo_imported_post') ) ); return $posts ? true : false; }
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Widget showing the same post multiple times’ is closed to new replies.