Plugins Plugin hub Backup SEO Caching Security Forms WooCommerce Images Best backup plugins
Hosting Hosting directory Shared hosting Managed WordPress Cloud hosting VPS hosting By reader location Hosting finder
Themes & builders Compare Rank Math vs Yoast
Tools All tools Hosting finder Plugin stack builder Cost calculator Salt generator Theme detector Who is hosting this? Speed test Headline analyzer robots.txt generator Redirect generator Uptime calculator Blog name generator
Blog Best backup plugins Deals
Guides All guides Speed up WordPress Choose hosting Back up WordPress
How we test

Blogging & content · Explainer

What Is the Latest Posts Block in WordPress? Explained

What Is the Latest Posts Block in WordPress? Explained

Short answer

The Latest Posts block is a core WordPress block that displays a list or grid of your most recent blog posts and updates automatically when you publish. You can show excerpts, dates, authors and featured images, and filter by category, author, order and number of posts.

Key takeaways

  • Latest Posts is a dynamic core block that updates when you publish new posts.
  • It is often used to show recent posts on a static home page, sidebar or footer.
  • Settings include list or grid view, excerpts, author, date, featured images and filters.
  • It shows standard posts only, not pages, products or custom post types.
  • Use the Query Loop block when you need pagination or a custom design.

What is the Latest Posts block in WordPress?

The Latest Posts block is a core WordPress block that shows a list or grid of your most recent blog posts anywhere you place it, and it updates automatically when you publish.

You add it like any other block. Once it is on a page, it pulls in your newest posts with their titles and, if you choose, excerpts, dates, authors and featured images.

It is a dynamic block. That means WordPress builds its output when the page loads, rather than saving a fixed list. Publish a new post and every Latest Posts block on your site shows it straight away.

WordPress documents the block on its Latest Posts block page. It has been part of the block editor since the editor arrived in WordPress 5.0.

What is the Latest Posts block used for?

It is mainly used to show recent articles on a static home page, a landing page, a sidebar or a footer without building a full blog layout.

Common uses include:

  • A Latest from the blog section on a static home page
  • A list of recent news on an about or services page
  • A short list of posts in a sidebar or footer widget area
  • Posts from one category, such as Announcements, on a related page

If your home page is a static page, the block is the simplest way to keep fresh content on it. Our explainer on the WordPress posts page covers how the main blog listing works alongside it.

How do you add the Latest Posts block?

In the block editor, click the plus button, search for Latest Posts, and click the block to insert it; then adjust its settings in the right sidebar.

Step by step:

  1. Edit the page, post or template where you want the list.
  2. Click the plus icon, or type /latest on a new line.
  3. Choose Latest Posts.
  4. Select the block and open the Settings sidebar.
  5. Pick what to show and how many posts.
  6. Save or update the page.

In a block theme, you can also add it to templates or template parts through Appearance > Editor. In a classic theme, add it under Appearance > Widgets. Our guide on editing a block in WordPress explains the toolbar and sidebar.

What settings does the Latest Posts block have?

The block lets you choose list or grid layout, show excerpts or full content, add author and date, show featured images, and filter by number, order, category and author.

SettingWhat it does
List or grid viewSwitch layout in the block toolbar; grid lets you set columns
Post contentShow an excerpt or the full post, and set excerpt length
Post metaShow the author name and publish date
Featured imageShow the image, choose size and alignment, link it to the post
Order byNewest to oldest, oldest to newest, or by title A to Z or Z to A
CategoriesLimit posts to one or more categories
AuthorsLimit posts to one author
Number of itemsHow many posts to display

The exact labels may change slightly between WordPress versions. You can find all core block attributes in the core blocks reference.

Filtering by category is a quick way to build topic sections. For example, a recipe site could show the latest Desserts posts on its baking page. Our comparison of categories vs tags helps you plan categories that work well for this.

What is the difference between Latest Posts and Query Loop?

Latest Posts is a simple, fixed-layout list of recent posts, while the Query Loop block lets you design each item yourself, use custom post types and add pagination.

FeatureLatest Posts blockQuery Loop block
Setup effortVery quickMore setup
Layout controlPreset list or gridDesign each post item with blocks
Post typesPosts onlyPosts, pages and custom post types
PaginationNoYes
FilteringCategory, author, orderCategory, tag, author, keyword and more
Best forSimple recent posts sectionsBlog archives and custom layouts

Choose Latest Posts when you want a recent posts section in a minute. Choose Query Loop when you need custom design, pagination or other content types. WordPress explains the second option on its Query Loop block page.

Does the Latest Posts block work with any theme?

Yes, it works in both block themes and classic themes, though its styling comes from your theme, so the look varies from site to site.

Some themes style the block well. Others leave it plain. You can adjust typography, colors and spacing in the block's Styles panel if your theme supports those controls.

If you need more control over appearance, use a block pattern built on the Query Loop instead. Our guide on using block patterns in WordPress shows how to find and insert them.

Can the Latest Posts block show pages or products?

No, it only shows standard blog posts; for pages, custom post types or WooCommerce products, use Query Loop, a product block or a plugin.

The block reads from the post type named post. Pages, products, events and portfolios are separate types, so they never appear in it.

WooCommerce includes its own product blocks for showing newest products. For custom post types, the Query Loop block is the built-in option. If you are unsure of the difference between content types, see our guide to posts vs pages in WordPress.

Why is the Latest Posts block not showing posts?

It usually shows nothing because you have no published posts in the chosen category or author, or because the filters are too strict.

Check these points:

  • You have published posts, not only drafts or scheduled posts.
  • The category filter includes categories that actually contain posts.
  • The author filter is set to an author who has published posts.
  • A cache plugin is not serving an older copy of the page.

Sticky posts may also affect the order you expect. Clear the filters, save, and add them back one at a time.

Does the Latest Posts block affect performance?

It has little effect on most sites, since it runs one small database query, but showing many posts with large featured images can slow the page.

Keep the number of posts reasonable, usually three to six on a home page. Use a smaller featured image size, such as Thumbnail or Medium, instead of Full Size.

Page caching removes most of the cost for visitors. Most cache plugins also purge the home page and related pages when you publish a new post, so the list usually stays current.

Where can you learn more about core blocks?

The WordPress documentation and developer handbook explain every core block, and the block's source code is public on GitHub.

If you want to see exactly how the block works, its code lives in the Gutenberg repository on GitHub. Beginners will get more from the free courses on Learn WordPress, which cover blocks, templates and site building.

For a broader overview of how blocks fit together, read our explainer on what the WordPress block editor is.

Frequently asked questions

How do I show only one category in the Latest Posts block?

Select the block, open the Settings sidebar and find the sorting and filtering options. Type the category name in the Categories field and select it. The block then shows only the newest posts from that category. You can add more than one category if needed.

Can I add pagination to the Latest Posts block?

No. The Latest Posts block shows a fixed number of posts with no page links. If you need pagination, use the Query Loop block, which includes a pagination block, or link to your main blog page with a button below the list.

How do I show featured images in the Latest Posts block?

Select the block and turn on the featured image option in the Settings sidebar. You can then choose the image size, set the alignment and decide whether the image links to the post. Posts without a featured image just show their text.

Is the Latest Posts block the same as the Recent Posts widget?

They do a similar job. The Recent Posts widget is the older classic widget that shows linked post titles in a sidebar. The Latest Posts block is the block version, with more options such as excerpts, featured images, a grid layout and category filters.

Why does the Latest Posts block show old posts?

A cache plugin, host cache or CDN may be serving an old copy of the page. Clear all caches and check in a private window. Also check that the order setting is newest to oldest and that a sticky post is not pinned at the top.

Sources

  1. Latest Posts block WordPress.org
  2. Query Loop block WordPress.org
  3. Core Blocks Reference WordPress Developer Resources
  4. Gutenberg repository GitHub
  5. Learn WordPress WordPress.org

Is your product missing, or something out of date?

Tell us what to add or correct. We read every note and reply when we need a source. A message does not buy a ranking.

About the editors

Written and checked byWPLegible Editorial Team Independent WordPress reviews and guides

Researched from the primary sources listed above and checked against our editorial rules before publishing.