diff --git a/classes/NPRAPIWordpress.php b/classes/NPRAPIWordpress.php index 8c2c6ec..6c60287 100644 --- a/classes/NPRAPIWordpress.php +++ b/classes/NPRAPIWordpress.php @@ -116,7 +116,8 @@ function update_posts_from_stories( $publish = TRUE, $qnum = false ) { 'meta_key' => NPR_STORY_ID_META_KEY, 'meta_value' => $story->id, 'post_type' => $pull_post_type, - 'post_status' => 'any' + 'post_status' => 'any', + 'no_found_rows' => true ]); // set the mod_date and pub_date to now so that for a new story we will fail the test below and do the update