Displaying recent blog posts on your WordPress homepage can be done in multiple ways, depending on your theme and customization preferences. Here are some methods:
1. Use WordPress Settings (Default Method)
-
Log in to your WordPress dashboard.
-
Go to Settings > Reading.
-
Under Your homepage displays, select Your latest posts.
-
Save the changes.
This method automatically shows recent blog posts on your homepage.
2. Use the Latest Posts Block (Gutenberg Editor)
-
Go to Pages > Add New (or edit an existing homepage).
-
Click the “+” button to add a new block.
-
Search for Latest Posts and add the block.
-
Customize the display settings (like post count, order, and excerpt).
-
Publish or update the page.
3. Use WordPress Widgets (For Sidebar or Homepage Sections)
-
Go to Appearance > Widgets.
-
Look for the Latest Posts widget.
-
Drag and drop it into the desired widget area (e.g., sidebar, footer, homepage section).
-
Configure the settings (like number of posts to display).
-
Save changes.
4. Use a Page Builder (Elementor, Divi, etc.)
If you’re using Elementor or another page builder:
-
Edit your homepage with Elementor.
-
Add a Posts widget (Elementor’s “Posts” or “Recent Posts”).
-
Customize the layout, grid, and styling.
-
Save and publish the page.
5. Use Custom Code (For Developers)
If your theme doesn’t support displaying posts, you can add custom PHP code.
-
Edit your theme’s home.php or front-page.php file.
-
Insert this PHP snippet:
-
Save the file and refresh your homepage.