Created
July 30, 2014 14:53
-
-
Save jpcontrerasv/88bf1e2f014399dc420b to your computer and use it in GitHub Desktop.
WP > ACF For each post
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_relacionados = get_field('artículos_relacionados'); | |
if( $post_relacionados ): ?> | |
<?php foreach( $post_relacionados as $post): ?> | |
<?php setup_postdata($post); ?> | |
<?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