Viewing 1 replies (of 1 total)
  • Thread Starter t2k

    (@t2k)

    So i looked at the commits @ github and found the soloution:

    …plugins/facebook-fanpage-import/components/import/import-stream.php

    Line 118:

    Old: $sql = $wpdb->prepare( “SELECT COUNT(*) FROM $wpdb->posts AS p, $wpdb->postmeta AS m WHERE p.ID = m.post_id AND p.post_type=’%s’ AND p.post_status = ‘publish’ AND m.meta_key = ‘entry_id’ AND m.meta_value = ‘%s'”, $post_type, $entry->id );
    New: $sql = $wpdb->prepare( “SELECT COUNT(*) FROM $wpdb->posts AS p, $wpdb->postmeta AS m WHERE p.ID = m.post_id AND p.post_type=’%s’ AND p.post_status <> ‘trash’ AND m.meta_key = ‘entry_id’ AND m.meta_value = ‘%s'”, $post_type, $entry->id );

    Will be pushed with Version 1.0.0 beta 2

    Have fun!

Viewing 1 replies (of 1 total)

The topic ‘Imports Same Post every Sync’ is closed to new replies.