For all intents and purposes, you only need one loop. While s_ha_dum’s comment is correct, odds are since you’re asking this question, you won’t have a need for multiple loops.
<? get_header(); ?>
<? if(have_posts()): while(have_posts()): the_post(); ?>
<!--Your content here, like so-->
<div id="content">
<? the_field('body_content'); ?>
<? the_field('footer_content'); ?>
</div>
<? endwhile; endif; ?>
<? get_footer(); ?>
This will suffice your needs. Of course you would just remove my loop contents and put your own in place. Just giving an example.
Related Posts:
- Filtering a WP_Query meta_query by numeric values isn’t working
- Automatically fill custom field value on post publish/update
- How to sort a table of custom posts by column containing custom field
- WordPress Search documentation: how to improve search query using taxonomy terms, custom meta fields?
- How to solve suspected memory issue in custom WordPress loop?
- List events by month
- Use Custom Post Type as Custom Field
- WP_Query on custom post type not displaying, multiple loops & get_template_part
- Using new WP_Query in shortcode in a custom field causes the main post content to not display
- ACF Upload Image in repeater from front-end with custom form? – add_post_meta()
- Display custom post on home page based on a metabox selection
- How to Display ACF Relationship Custom Field as Link to Specific Custom Post?
- Query Custom Post Types by date (custom field) range
- wp_query to find posts by year and month
- Remove duplicated values from a loop
- Custom Post type and Custom Field WP_Query
- How to change post featured image using a custom field of category?
- Meta Key Value in current-user-only loop
- How can I dynamically add a post to a custom post type which uses a custom field?
- What is the recommended / best way to do this: Event calendar post/type in a block-based theme?
- Bulk Update Custom Fields for Custom Post Types
- WP_Query order by custom field, then randomly order some of results
- Query custom post type with ACF Date
- Store CPT ‘Reviews’ average ratings to a WordPress DB table or to a DB custom table?
- Meta Query Not Returning Output Despite Having Matching Values
- ACF From & To Date Validations
- Using advanced custom fields from one custom post type in another custom post type / using nested shortcodes
- How to render a custom post type template with custom fields using shortcode
- Order Custom Post Type by Custom Field Value
- The loop seems stuck to a single (now deleted) post
- Multiple Frontend Filters Using Advanced Custom Fields
- Displaying custom field according to date
- WebP Fallback for Inline Background Image in Style Attribute
- Custom post type showing same Post on all Pages
- Post loop count is not in order
- How to conditionally add Custom Post Type to Front Page
- How to inherit field value from parent post into in child / sub post
- hide specific div on single.php [closed]
- Having Issue on Ordering CPT by Custom Field In Custom WP Query
- Custome fields not displayed
- How do you output an unknown number of images in a custom post type with desired markup?
- Get data from PHP to JavaScript to set position of each post on front page
- get custom post type value in header.php [closed]
- posttype and custom fields on multisite
- How do I get_the_postID() for a custom post that uses ACF repeater field?
- How do I replace the post title with a custom field?
- Get post content from another section in custom single page
- Sum and count of custom field values
- Group by custom field value (start and end times)
- Custom post types, disable fields
- Get A Custom Field From A Custom Taxonomy Of A Custom Post Type [closed]
- Displaying information from custom field on custom post type
- Excerpt length: get first paragraph
- Get post-meta value of all custom-posts – lowest to highest year-count?
- Custom PT, Taxonomys and wordpress query
- Displaying Posts Using a Custom Query with a Custom Field and a term_id
- How do I list a custom field and custom taxonomies for each result in a loop?
- How can i loop through custom post type according to custom meta field?
- Fetch data from two custom post types and create multidimensional array for output to html table
- Having a repeating custom field in admin custom post type, what I’d go better with, for DB’s sake? ACF repeater or query a different post type?
- ACF – Retrieve custom taxonomy from a relationship field
- How to sort WP_Query by a custom text field (written as a date dd/mm/yyyy)
- when looping through custom post data not appearing
- Show custom post type event if current day using ACF
- How to access repeater field of a custom field?
- Filter posts by their related field’s custom field
- Custom meta fields not showing up in WP_Response Object via custom endpoint
- ACF meta_key and meta_value break loop
- Wrapping an unknown amount of posts inside separate HTML Containers during WP_Query loop
- Adding a Section for Visitors
- Autofill advanced custom field with user data
- Advanced search form with multiple custom fields
- sorting in wp query based on custom field value
- Custom taxonomy template for custom fields loop [closed]
- Sort loop by custom field from different post type
- Display related post content and custom field content
- How do I display specific custom posts, and how do I edit a post’s singular page?
- Automatically convert standard posts with custom fields to custom post types
- WordPress query in which condition uses custom field
- WordPress loop add heading before first of type
- How to make a shortcode for my WP_Query Loop? [duplicate]
- Error in WP Query. If variable is empty it is displaying previous post value
- WordPress loop, show only one post per custom field
- Can’t pick up a field created with Advanced Custom Fields
- Get month and day from a Date Picker custom field
- How to get past and upcoming post by defining date in custom field?
- $post breaking container loop
- Setting a custom $query->query_vars[‘meta_key’] breaks the WordPress menu
- Order by custom field attribute
- Get result from Custom Field in Custom Post type
- How to show animal lineage/pedigree in WordPress?
- Custom Post Type Loop breaking php
- Styling first post using Advanced Custom Fields
- loop through custom post-type with two meta_keys
- How do I filter a custom post type loop by a field?
- ACF – Query relationship without ID
- Is it possible to specify a time interval (from, to) in ACF with date picker, or other custom field?
- Display ACF object field data using Elementor Custom Query
- Post object GUID adding http:/
- How to automatically update ACF field value every year?