Figured it out just had to do this , the page-custom-field.php is included to shorten the code.
<?php $query = new WP_Query( array( 'pagename' => 'features' ) ); ?>
<?php while ( $query->have_posts() ) : $query->the_post(); ?>
<?php include page-custom-field.php' ?>
<?php endwhile; ?>
<?php wp_reset_postdata(); ?>
Related Posts:
- ACF Repeater loops and resets – where is the reset_rows() documentation? [closed]
- Remove comma from last item output from loop
- the_content() seems to block my ACF-code
- Using an ACF field from a page within a post loop?
- ACF custom field in [closed]
- Distribute Gallery Images Every nth in Loop
- ACF – add a group inside a repeater [closed]
- While loop with bootstrap [closed]
- How to create a multidimensional array with multiple loops
- Loop through ACF taxonomies and output associated posts
- Blank content php code not parsing advanced custom fields gallery add-on [closed]
- ACF: display custom filed of CPT into the loop
- Use ACF Category Image for all Taxonomy Archive Views
- Need to while loop and display contents in the subfield of a group field given by ACF
- Add Search and Filter functionality to custom loop
- ACF field not appearing correctly in loop
- Can’t see custom field after the Loop [closed]
- While loop inside another while loop
- ACF loops false value with repeater and checkbox
- How do I get the attributes of a short code from a post?
- WordPress category & taxonomy loop with pagination
- Changing behavior of the loop twice in one page
- Show scheduled posts in archive page
- post__in – Placing content from a foreach loop inside of an array
- loop query exclude meta_key with meta_value
- “Blog pages show at most” in The Loop
- wp_insert_posts Fatal error: Maximum function nesting level of ‘100’ reached, aborting!
- Post Loop not Returning Permalink
- Displaying child page content of a certain parent
- Pagination adding extra posts only on page 2
- If Loop has odd number of posts on last page Custom style for last post in it
- add_filter() doesn’t work in loop
- The Loop in Static Page
- Content/Excerpt length control for a specific loop?
- Why we use if with while loop?
- Loop posts only excluding first post
- Loop repeating design pattern
- Remove duplicated values from a loop
- Sort Posts By Category?
- Operations with custom fields values in a loop
- Can’t access login screen, wp-login.php 404’s
- Create a loop that gets pages with their template
- Why is my loop not dynamically grabbing the correct Category and displaying all categorized posts?
- Loop through custom fields with similar label / common chars in label
- Query posts if meta key starts with
- 3 Posts in Loop, Show Stickies First
- Loop within a loop (Again) for template
- Any number in meta key (wp query)
- How to use current_post to open a new unordered list every five posts
- Why cant you place the Loop outside of the index.php?
- sticky post in custom loop
- Rating system and changing the loop
- Calling & display certain product category loop and pagination on the homepage
- Detect if current page is front page within custom query
- Sanitize Custom Field Value in Meta Query
- Default ‘post’ post type archive slug?
- show random image in loop if image is not set
- Get Page content to displayin Bootstrap Modal
- Pagination – works on local but not live dev!
- need help looping add_action in wp
- Does WordPress Loop have a function like Shopify’s cycle?
- Combine the results of two loops [closed]
- How to show more random posts if Tag has less than 3 posts
- How can I improve the performance of this query_posts loop?
- Add leading zero to current post display [closed]
- Output meta into arrays
- Moving wordpress to different url/server creates redirect loop
- Pulling in featured image into default recent posts widget
- Random post link generator messes up the loop
- Modify loop output for a specific list of categories
- Print the whole page?
- Pagination for two loops
- Loop info in jquery Tabs – loop into a variable?
- Thumbnail Image Rounded Corners w CSS (or any other good method)
- Several loops in sidebar issues
- Fetch data from two custom post types and create multidimensional array for output to html table
- get_field values for each post on home page using wp_add_inline_style
- Adding $args to wp_schedule_event() causes hook to add infinitely to WP Cron
- $post is undefined in wordpress loop [ajax]
- Insert content above an embedded video inside Wordress’ php the_content
- Loop only shows first two posts
- the loop printing post in one grid
- Check value of post meta within IF statement
- My WordPress installation doesn’t load correct template
- Work arounds for conditional checks inside the loop in search.php?
- adding tax_query to $query_string
- Get Sticky User in user loop based on user role
- Popular posts with Varnish ESI
- Querying posts from only one category and exluding the latest post
- WP update_post_meta link loop
- query_posts ignores the argument
- Need some help with “the_widget()” function
- Conditional Check in The Loop’s Parameters
- Exclude Authors based off date of last post
- Loop from another WP site onto mine
- Having issue with WordPress loop
- Wrap every 2 divs in row – for each loop [closed]
- How to add class to the last image of the last post in a loop
- Why did my most recent article fall behind an older one on my site?
- How to get files from loop for zip