Something along the lines of
<?php
if(have_posts()) {
while(have_posts()) {
the_post(); the_excerpt();
}
}
?>
And of course, read the documentation for further info:
Related Posts:
- How to have more post in a page than in your home page
- How to display by default only published posts/pages in the admin area?
- Using single.php from plugin folder instead of default template folder
- Change admin startpage to Pages-page?
- Static posts page with home.php
- Pagination not working on Custom Page Template
- Create subpage /user/ or /my-profile/ like /author/ with additional query like /user/user123
- Order post by year DESC and month ASC
- Why does `url_to_postid` return 0 when testing `page_for_posts` Page?
- Replace existing pages with new pages, keep menu links
- [Plugin: Posts 2 Posts] How does it work?
- Is there any WordPress alternative to Book module of Drupal?
- Deleting data from a custom table in WordPress
- Display page content AFTER a loop of posts
- Show Two custom Post type and their posts on category page
- How to start with post number x?
- Posts vs. Pages
- View Private Published Page with URL Code (no login required)
- Meta query for custom post type ignored in main query
- Move first half of posts to one parent page, second half to the other page
- Adding buttons to Add New Post and Add New Page
- Function to delete a post, it’s children and it’s grand children (half way there already)
- WordPress custom Query for Posts in Category display posts multiple times
- Editing the default page to show all posts, rather than most recent ones
- Static posts page with home.php
- Multiple Category Query
- Dynamically switch template on click
- “about us”, ” contact” sections should be article(post) or page in the simple small Business website?
- disable Tab post on nav-menus page (Admin)
- Add a static page that links to homepage
- Can I change the “Home” text in the menu?
- WordPress Query Posts From Category Post on Static Page
- How to delete all posts, categories and tags from WordPress database
- Custom home page with full post for first one only
- how to replace old DW site with new WP site? [closed]
- Inserting an example of the last 3 post on to the homepage
- Change website directory safely to add a static page on startup
- I don’t want the complete article to show on homepage
- custom query for both category and pages using global $wpdb;
- How to display only one category in a custom post type?
- Organization of time insensitive content
- Custom Select Query – Selecting the Year?
- Prevent duplicate pages from being added
- Trying to exclude custom posts based on date, while sorting by custom field
- How Can I Always Display A Particular Post First Using WP_Query?
- What would causes search to return incorrect results?
- Changing permalink of WordPress
- How to show only homepage in google results instead of privacy, contact pages
- Include Recent Post in Category
- Added a ACF field to custom page and want the results to show as a column in admin
- Show post count in custom taxonomy page
- Put page on Archived statut after end of publication date
- post and page and custom post type
- Count posts for pagination
- How do I set content in my pages so that it remains permanent while blog posts are added below?
- Permalink base only for posts
- Fastest and most efficient SQL query to check if UID exists
- One Post with different content, depending on a Page
- wp query custom orderby not custom field
- Custom Select Query pagination not working properly
- 404 error on every post and page other than home
- Allow users to create their own page/s
- Want home page to click through to two different page types
- Cannot retrieve home url with custom queries
- Make a custom URL and link to custom Template
- Special Query: Title, Terms, Content – %LIKE%
- pagination does not work with query_posts. Help! [duplicate]
- Home page: using custom fields for posts and pages
- Automatically delete default posts and pages on theme install?
- Display one post randomly from category on home page
- custom post type single page template not working
- The page that displays Posts on homepage
- How to have 2 posting pages on a blog
- How to display text of a page in home or custom page?
- Need to show birthday of custom post type(Famous people in this case) in elementor. Date of birth set in custom fields
- Edit Page button is gone
- Display custom post types by date field
- $post object is null
- Using pre_get_posts to target a query in the sidebar
- Delete post by giving its link
- Getting Custom Post Loop to display in Bootstrap 3 column grid
- Issue with using add_rewrite_rule() for post querying custom fields
- Can’t get full post title if there a spaces in title
- Custom post type menu
- WordPress : using AJAX to get posts & Sidebar Content to an external application
- What is wrong with my wp query, cant exclude the category that i want
- Custom Same Page Search
- creating single page with 2 columns while theme is 3 column
- Querying Advanced Custom Fields
- Can I include get_posts in this array?
- Rewrite rule for query params
- WordPress Query – Display 5 posts (same post type), each from a given tag
- Orderby event date (if it exists) or post date (if it doesn’t) – how to reorder posts based on meta value OR date
- Blog images not showing on homepage
- Manual Scheduler For Custom Post Type
- Show code only on WooCommerce Pages
- Query not returning child posts for any parent post ID
- single- and archive- templates not being applied to custom post types, not even after flushing permalinks
- Check if values exists DB
- Display old posts if no future posts exist