Your problem is that you are putting the page result in $page. While the normal commands like the_title() and get_field() will look for the $post variable if you are not setting a seperate ID of which you want the title.
I once did this by creating a backup of the $post variable, and then just put each post i wanted to include on the parent page in the $post variable. Then included the .php files, and every normal command like the_title(); & get_field(); works like it would normally would. But this is dirty, and there is probably a much better way to accomplish this.
You should probably just replace the main query with your get_posts query. Afterwards you should reset & restore the wp_query.
An other option would be to alter the page-customfield-3.php to include the $page variable you are setting in your page-parent.php.
Related Posts:
- Advanced Custom Fields – Get custom fields from parent page
- Advanced Custom Fields dynamic update_field
- Load one page with parent and child pages
- Page template is missing fields or is invalid when I updating the template
- Displaying child pages and file URL in an ACF relationship field shortcode
- Advanced Custom Fields: how do I check to see if a value is set in an field? [closed]
- Where are custom field values stored in the database
- Add custom field to the archive page?
- Matching Serialized Arrays with meta_query
- Having different sidebar content for MANY pages?
- How to position a custom field before the editor
- Display post_object content using Advanced Custom Fields plugin
- Remove old custom field after import
- Unable to get Preview of Uploaded image within a Custom Meta box
- Retrieve custom fields on Categories, using WP-API
- Order by custom field date?
- Change content before writing to database
- Order Custom post type loop by custom field (datepicker)
- Using Custom Function With Advanced Custom Fields
- automatically set “Featured Image” the same as the og:i that is set in a custom field
- Problem with adding exta field in metabox in custom post type
- Copying Custom Meta Values from existing post to a duplicate post
- How do I read the value of a custom field of the page?
- Calculate the sum of certain the_sub_fields
- Advice needed for importing custom field data and database structure
- Displaying Custom Fields on Post with Genesis Child Theme
- Unable to show ACF’s Image Custom Field properly in Genesis Framework [closed]
- Login & Register & Custom details WITHOUT plugin
- Send Multiple Custom Field Values Through the URL
- ACF won’t load from a custom JSON location
- Deleted pages showing up when querying for child pages
- Get Meta from Custom Field of Image URL
- Show ACF fields only on certain page in the backend
- Update posts after populating ACF field value [closed]
- How can I pass a variable set by ACF to header.php?
- WP Custom Fields Metabox Disappears – ACF plugin issue [closed]
- Transfer self made functions.php custom fields to Advanced Custom Fields [closed]
- ACF: How to get the full field name (meta_key) by a field key?
- Dynamically fill a post custom field with post publish date
- How can I store a file in the database in the same way WordPress and ACF do?
- Will loading too many ACF Fields cause slow down?
- WP_User_Query pulling ACF to loop
- Display the contents of a custom field of a page on their child
- Calling the “wp-link-wrap” pop-up modal
- Print custom field in Query Loop block
- How to add Advenced Custom Fields In Single Post
- How to schedule a custom field value update?
- Order RSS content by an advanced custom field value
- Add new image block, set default class name and update it using Javascript
- Get an advanced custom field after post publish
- How to create a dropdown select of all items in an ACF field group
- How to render a custom post type template with custom fields using shortcode
- WooCommerce – Adding Custom Fields To Invoice
- Sort custom post type by multiple custom fields
- Limits, not all post are showen when querying for posts by view count
- Custom fields attached to a page template only show on edit screen when page is saved
- remove initial wysiwyg editor from cms page edit
- Vimeo thumbnails
- Advanced Custom Fields WYSIWYG More tag
- Displaying page image in the footer automatically
- Walker class for sub-menu with ACF fields
- Hide text if one custom field out of two is empty [closed]
- How to list Category list in ACF Pro’s Select Field to choose from [closed]
- Get all the posts where meta field with multiple choice has several values checked
- Custom fields issue [closed]
- Querying posts by latitude and longitude to build a Google Maps with several markers
- How to display childrens custom fields?
- ACF: How to get users with a ACF flexible content subfield with a specific value AND layout?
- How to display a product features dynamically with icons?
- How to copy data from a custom field to the post_content?
- WordPress creates new lines in postmeta table on post update
- ul list with only as many li’s as filled custom fields
- Retrive Image URL of Custom Fields in Theme
- Display custom field from the front page on another page
- How to Pass values to Custom Field through PHP in WordPress Posts?
- Is there a way to dump all registered sidebar/widget?
- Let Users Filter Posts by Custom Fields
- Filter posts by custom field (Advanced Custom Fields)
- Advanced Custom fields not available yet during publish_page action
- How can I output the custom fields wrapping with HTML
- Displaying an ACF list of users
- The conditional logic only works to show or hide?
- ACF Plugin How to make the customer add more fields in the post?
- Interrogate a page within a loop to check template type or custom meta data (Pages vs Posts)
- Custom field Search with Relavanssi
- How to get custom image field of specific post id
- How do I include a template file while allowing it to render its own dynamic content added via custom box?
- Need to search a custom field (ingredients, one long string per post), but want it to allow phrases/non-exact matches
- How To Save Data From Remote APIs To ACF?
- comments_where Hook
- Rewrite comment form post ID on submit
- show a specific metabox dependent on the page template
- ACF field group not showing in page
- What am I missing in this Code Block?
- How to show ACF fields in Gridbuilder custom block
- get_field values for each post on home page using wp_add_inline_style
- Problem with revisions only returning four results
- How to set up page fields with gutenberg instead of ACF
- Shortcode for Custom Field of Media Attachment (to use with Featured Images)
- ACF multi taxonomy on filterable gallery