Advanced custom fields – pulling data in from another page
The relationship field returns an array of post objects. Each post object contains the ID of the related post. The ACF field functions accept a second parameter, which is the post ID you want to retrieve data from, if it is not the current post. if( $related_pages = get_field( ‘data’ ) ): foreach( $related_pages as … Read more