Skip to content

Instantly share code, notes, and snippets.

@hellofromtonya
Created February 1, 2017 03:15
Show Gist options
  • Save hellofromtonya/40397766eefa4c1722341596a6dd1428 to your computer and use it in GitHub Desktop.
Save hellofromtonya/40397766eefa4c1722341596a6dd1428 to your computer and use it in GitHub Desktop.
Loop Code Challenge
<?php
// This post does not have a featured image,
// i.e. thumbnail.
$has_thumbnail = has_post_thumbnail();
while ( $has_thumbnail ) {
// does the code block run
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment