Last active
January 30, 2018 01:50
-
-
Save ashby/11442521 to your computer and use it in GitHub Desktop.
ACF: Post Object
This file contains hidden or 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 $post_objects = get_field('post_objects'); ?> | |
<?php if( $post_objects ): ?> | |
<?php foreach( $post_objects as $post): ?> | |
<?php setup_postdata($post); ?> | |
<?php the_title(); ?> | |
<?php endforeach; ?> | |
<?php wp_reset_postdata(); ?> | |
<?php endif; ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment