Advanced Custom Fields – Get custom fields from parent page

In your loop, you can access the id of the parent page with $post->post_parent.

You just need to pass this value as second parameter:

<img src="https://wordpress.stackexchange.com/questions/111351/<?php the_field("header_image', $post->post_parent ); ?>">

Leave a Comment