This fix worked for me. In “syndicatedpost.class.php” change this :
$guid = $this->post['guid'];
$eguid = $wpdb->escape($this->post['guid']);
$q = new WP_Query(array(
'fields' => '_synfresh', // id, guid, post_modified_gmt
'ignore_sticky_posts' => true,
'guid' => $guid,
));
$old_post = NULL;
if ($q->have_posts()) :
while ($q->have_posts()) : $q->the_post();
$old_post = $q->post;
endwhile;
endif;
To this :
$guid = $this->post['guid'];
$eguid = $wpdb->escape($this->post['guid']);
$the_query = get_posts(array(
'fields' => '_synfresh', // id, guid, post_modified_gmt
'ignore_sticky_posts' => true,
'guid' => $guid
));
$old_post = NULL;
foreach( $the_query as $post ) :
setup_postdata($post);
$old_post = $post;
endforeach;
$post = $tempPost;
setup_postdata($post);
Also added this under global $wpdb
global $post;
$tempPost = $post;