Try
$PostID = get_the_ID();
the_field('text_field', $PostID);
Related Posts:
- ACF – Get lowest & highest value from field
- Multiple taxonomy And acf filter group by
- Any number in meta key (wp query)
- How do I run through a WordPress loop called from a filter function?
- Excluding pages in WP_query using ACF
- Stuck in the query loop
- Get all fields inlcuding “ACF” (Advanced Custom Fields) columns in wp_query
- How to make posts unqueryable/unpublish posts where ACF relationship field is an unpublished post? [closed]
- Expecting statement error from php loop using ACF plugin
- Populate select list with meta values from all posts of a Custom Post Type
- Issue in If else condition [closed]
- Creating array to compare custom field values
- Output ACF field dynamicaly within a taxonomy loop [closed]
- WP_query shortcode inside acf Repeater breaks the repeater loop
- Some doubts about how the main query and the custom query works in this custom theme?
- Using a custom WP_Query with get_template_part loop
- Loop within a loop?
- Use WP_Query with have_posts()?
- Display posts the match taxonomy term linked from wp_list_categoies?
- Loop through all tags & output posts in alphabetical list
- Merging a complex query with post_rewind and splitting posts into two columns
- Pagination Not working on Home Page with 2 Query
- meta_query not working properly
- Exclude post on loop by multiple meta key value
- Sort by meta key on archive page
- Query sticky posts with thumbnails
- Show all parents and children in custom post type in right order
- Why is this coming back as null? Thats wrong. There is one post
- Ignore post by meta value in the main query
- WP_Query to get posts in a specific category and post format
- Can’t get drafts with WP_Query using post_status parameter
- How to retrieve current page WP_Query arguments?
- How to limit WP_Query to one result on the loop?
- Random loop with code to prevent duplicate output returns no output at all from time to time
- How to use offset in WP_Query
- Multiple loops without repeating content
- Change query based on post type while staying in loop
- Filtering posts from different categories into different section by doing WP_Query only once
- Get a list of posts with associated meta_value
- $WP_Query: How to display excerpt on first post only
- wordpress ajax relationship query
- Custom taxonomy.php not working
- different for loop if screen resolution < 1000px
- Transient api Caches confused
- get_template_part causes 500 error
- sort and display posts by custom field (wp-query and the loop))
- WP_Query – Adding “offset” posts to the end of the loop
- Conditional operator OR not working with custom fields
- wp_query is showing posts from other categories
- Should I reset $wp_query?
- inserting content of 1 Post to in another with a template hierarchy
- Pagination for custom loop on custom page template is not displaying anything
- Filtering by multiple conditions in the loop
- How to access $wp_query object from array of posts given by get_posts?
- Display all attached image of every post of custom post type and link to original post
- Writing less unnecessary code with WordPress
- How do I get the content of a custom instance of WP_Query?
- WordPress Queries Not Working?
- Filter subpages in while loop from WP Query object
- Use have_posts() with array of post results retrieved by $wpdb->get_results
- Custom query does not find pages
- How to sort by most watched in X days/months
- Magazine style frontpage with multiple categories/loops and no duplicate posts
- How can I use arrays and a foreach to generate many lists with WP_Query?
- ACF: How to query for a given value count of an array like field? (e.g.: How many rows has a `flexible_content` field?)
- How to use custom page for all posts with custom url, call another directory?
- display ACF repater field in archive page
- WP_Query breaking the loop in a nested loop
- Show a message if there are no active posts in category
- Problem with my loops
- Repeat array inside array through while loop
- What’s causing an infinite loop?
- display the children of the post using the current page as the main parent
- Display 3 levels of categories on page
- Query string order by custom field
- Paging works correctly on local version, but not live?
- pages shortcode filtering by category
- Custom post type loop error: Trying to get property of non-object
- How to add in WP_Query to every 3 posts displayed? [duplicate]
- Display three sequential posts on each page load, without repeating previous
- Object of class WP_Query could not be converted to int inside shortcode
- How to make a wordpress loop file that displays posts based on certain conditions
- WP_Query secondary query failing
- Custom loop – Isolating post meta output depending on current query taxonomy terms
- Pagination not working with WP_QUERY
- Custom search (wp query by custom fields)
- Sorting is not working in WordPress WP_Query
- Add custom WP_Query after the first 3 posts
- How do I display posts with specific value in a custom field into my loop?
- The sorting of posts by a meta_query with two keys fails while separated as single queries it works
- Limit the number of posts from a specific category on index.php
- Order by multiple meta keys on wordpress
- wp_query pagination links producing 404
- Display First posts without the default featured image
- Pagination problem with multiple loops on the same page
- Query for page content, and query for posts on the same page?
- Can’t seem to get an else statement correct? [closed]
- How do I split a large query with a semi-expensive function included into multiple smaller queries
- How do I subquery with custom meta fields?
- Show number of posts AND number on current page (cannot make it work)