Created
September 30, 2014 11:03
-
-
Save mattradford/0d1d1f09c14cf36f604b to your computer and use it in GitHub Desktop.
ACF get field from post parent
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 $parent_id = $post->post_parent; ?> | |
<?php the_field('custom_field', $parent_id); ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment