Skip to content

Instantly share code, notes, and snippets.

@daronspence
Created November 2, 2014 19:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daronspence/47cb63fdfecad2c6a054 to your computer and use it in GitHub Desktop.
Save daronspence/47cb63fdfecad2c6a054 to your computer and use it in GitHub Desktop.
<?php
$args = array(
'post_type' => 'morning_show'
);
$actors = new WP_Query($args);
if ( $actors->have_posts() ) : while ( $actors->have_posts() ) : $actors->the_post() :
the_field('actors');
endwhile; endif; wp_reset_postdata();
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment