Title: Continue Not In a Loop or Switch
Last modified: August 31, 2016

---

# Continue Not In a Loop or Switch

 *  Resolved [Dan Zappone](https://wordpress.org/support/users/dzappone/)
 * (@dzappone)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/continue-not-in-a-loop-or-switch/)
 * Heya-
 * Fatal error: ‘continue’ not in the ‘loop’ or ‘switch’ context in /plugins/feed-
   them-social/feeds/facebook/facebook-feed-post-types.php on line 60
 * You’ve got a `continue` in an `if` statement and while it seems to slip by just
   fine in PHP 5.x it still throws a warning and totally fails in PHP 7.x with a
   fatal error.
 * The code is as follows:
 * `if ($FB_Shortcode['type'] == 'albums' && !$FBalbum_cover) {`
    `unset($post_data);``
   continue;` `}`
 * According to PHP specs `continue` is used within looping structures to skip the
   rest of the current loop iteration and continue execution at the condition evaluation
   and then the beginning of the next iteration.
 * PHP 7 is clearly more strict about this. Any chance you can resolve this before
   the next update?
 * Thanks so much!
 * [https://wordpress.org/plugins/feed-them-social/](https://wordpress.org/plugins/feed-them-social/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [slickremix](https://wordpress.org/support/users/slickremix/)
 * (@slickremix)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/continue-not-in-a-loop-or-switch/#post-6941079)
 * Hey Dan,
    Thanks for taking the time to notify us of this issue! We have removed
   the continue and have pushed a silent update.
 * Thanks again,
    Justin
 *  [chenryahts](https://wordpress.org/support/users/chenryahts/)
 * (@chenryahts)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/continue-not-in-a-loop-or-switch/#post-6941266)
 * I’m having this error as well, using 1.9.3. How can I get your ‘silent update’
   fix?
 * Thanks!
 *  Plugin Author [slickremix](https://wordpress.org/support/users/slickremix/)
 * (@slickremix)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/continue-not-in-a-loop-or-switch/#post-6941267)
 * Delete and re-install our feed them social plugin. Make sure and clear the cache
   afterwords from the Settings page of our plugin.
 * Spencer
 *  Thread Starter [Dan Zappone](https://wordpress.org/support/users/dzappone/)
 * (@dzappone)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/continue-not-in-a-loop-or-switch/#post-6941269)
 * Hey Guys-
 * Sorry I didn’t get a chance to reply sooner. Thanks a bunch for the quick fix.
   I really appreciate it!
 * Dan
 *  [chenryahts](https://wordpress.org/support/users/chenryahts/)
 * (@chenryahts)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/continue-not-in-a-loop-or-switch/#post-6941270)
 * Spencer,
 * Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Continue Not In a Loop or Switch’ is closed to new replies.

 * ![](https://ps.w.org/feed-them-social/assets/icon-256x256.jpg?rev=998039)
 * [Feed Them Social - Social Media Feeds, Video, and Photo Galleries](https://wordpress.org/plugins/feed-them-social/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/feed-them-social/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/feed-them-social/)
 * [Active Topics](https://wordpress.org/support/plugin/feed-them-social/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/feed-them-social/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/feed-them-social/reviews/)

## Tags

 * [PHP7](https://wordpress.org/support/topic-tag/php7/)

 * 5 replies
 * 3 participants
 * Last reply from: [chenryahts](https://wordpress.org/support/users/chenryahts/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/continue-not-in-a-loop-or-switch/#post-6941270)
 * Status: resolved