Created
June 28, 2017 15:04
-
-
Save eclarrrk/e2e465be18d3a3746510cab67d7cb16c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$lastposts = get_posts( array( | |
'numberposts' => 99, | |
'post_type' => 'team_member') | |
); | |
if ( $lastposts ) { | |
foreach ( $lastposts as $post ) : | |
setup_postdata( $post ); | |
// Put your code between here... | |
echo '<h3>'; | |
echo the_title(); | |
echo '</h3>'; | |
echo the_content(); | |
?> <p> <?php | |
echo the_field('pork_ice_cream_recipe'); | |
?> </p> <?php | |
// ...and here | |
endforeach; | |
wp_reset_postdata(); | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment