-
-
Save hiiightower/3f048c6c40c9373ab92f89dd292d437e 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