Create a child theme for your current theme. Read how to here.
After that create a file in your child theme named front-page.php. This is the first file WordPress will look for when you visit the home page of your site.
To understand why, read here.
In that file use:
<?php
get_header();
$all_pages = get_pages();
global $post;
echo '<div class="pages-container">';
foreach ( $all_pages as $post ) {
setup_postdata($post);
// improve the content, this is an example
echo '<h2>' . the_title() . '</h2>';
echo '<div class="page">' . the_content() . '</div>';
}
echo '</div>';
wp_reset_postdata();
get_footer();
The docs for function I’ve used are here:
Related Posts:
- How to display summary content from a Page (Not a Post) on another page
- Page template query with WP_Query
- How to display page content in a page template?
- Does WordPress generate an automatic page for post formats?
- Pagination causes error 404 when used with front-page.php
- Paginated pages are showing correct content but pagination links are not
- Single page theme that uses pages for the content
- Trying to list out child pages with WP_Query
- Order by menu structure
- How to display 3 different loops in 3 columns on homepage
- Targeting specific pages in the loop
- What are the differences between “Latest Posts” and “Static Page”?
- WP_Query not retrieving by random order under parent
- Set if condition with wp_nav_menu
- Set order of returned items in the WP_Query() class/function
- Search pages that are a child of the current page
- Serve specific “template” page at any URL that ends in its slug
- Display custom tags on pages that have a specific page parent
- Is there a reason why Pages are not publicly_queryable?
- Why post__not_in is ignored?
- Reusing content from front page on sub page
- Exclude parent with child pages from WP_Query
- Set front_page programatically after user login via query, while leaving site option alone
- Create a loop on my pages with new “WP_Query”
- All blog data on a page using custom query gives 404 for page 2 and onward
- When listing child pages run out of memory
- WPQuery calling specific posts problem
- WP_Query with multiple orderby NOT working with ASC and DESC, what’s wrong?
- Display specific page (that is child) content on parent page
- Get query results with a page title
- How to get current page nearest parent id?
- How to get main menu only with wp_nav_menu
- Unable to paginate a custom page query
- Determine if ID is page or post and query the ID
- How to query for a page, get data, then query for child pages of that page
- Get list of all Grandchild Pages
- Custom query does not find pages
- How to get pages of parent (non-recursive)?
- WP Query and multiple pages
- How to use custom page for all posts with custom url, call another directory?
- display the children of the post using the current page as the main parent
- pages shortcode filtering by category
- Letting wordpress decide what template and page to use based on condition
- Paginated Post List on Front Page
- How to create page that lists tags by initial letter?
- Get a page ancestor from a most viewed list
- How can I use a specific wordpress page template if certain words are used in page title [closed]
- Category Archive not working for pages
- Retrieving category pages from subcategory returns empty sets
- Issue in If else condition [closed]
- Show parent’s child and also child’s, child on a page?
- get contents and permalink from a specified page
- Hierarchical List Pages as a table
- Get next post when using pagination with WP_Query?
- WordPress pagination returns the same posts
- How to write short code with if else to get page_id?
- Rewrite URL custom search query
- Paginate_Links page 2 doesn’t work
- Query posts only with featured image
- get_query_var function not working at all
- get_query_var( ‘paged’ ) not working outside of homepage
- Order by Category and Post in WP custom Query
- Execute a large WP_Query with many “AND” Meta_Queries?
- WP_Query can’t exclude more than 1 author?
- Generate a tabbed submenu — from taxonomy term or submenu item — with sample content
- Explanation of WP_Query
- Undefined property: WP_Query::$post
- Excluding Sticky Posts from The Loop and from WP_Query() in WordPress?
- Query different number of posts with different formats in one go
- need to exclude APP_TAX_STORE => $term->slug
- How can I use $wp_query->tax_query as tax_query parameter for a new WP_Query instatiation?
- Query with search and subscribers only output
- Post loop for all taxonomy terms
- Removing duplicate values between two wordpress queries
- Issue with front page navigation after upgrading to 3.4
- Ordering posts by an array
- get_posts output always same post
- WordPress Custom Search Form Displaying Unexpected Results
- Stomping WP_Query in author archive to facilitate pagination with custom queries
- Limit number of posts in loop
- How do I get Woocommerce product variation name and variation description in a WP_Query?
- Does putting queries within loops cause an issue on WordPress?
- Trouble Making WP_Query paged
- Generate custom output on URL with directory
- prevent get_comments() from returning comments not in comment__in
- WP Query should show No Posts when tax_query $args taxonomies don’t have associated posts
- Display posts from multiple value in meta separated by comma
- WooCommerce. How To Exclude Subcategory Products From Category Listing Page
- IF ( ! $loop->have_posts() ) condition doesn’t work – WP_Query
- Getting posts by custom field value
- wordpress multiple meta value query is not working
- trying to change from query_post to WP_Query
- Strange results from WP_Query
- WordPress For Loop Prints Unwanted Extra Paragraph Element
- WP_Query doesn’t work when url parameter is added
- Woocommerce orderby rand with tax_query not random
- why is this query returning entire blog-posts
- Pagination error WordPress multiple loop
- Multiple wp_query loops showing first 5 posts on all pages instead of older posts[Resolved]
- SQL returned by Wp_Query has wp_posts.ID = -1