Back to Support Content and Media Blocks Query Loop Block

Query Loop Block

The Query Loop block is used to display blog posts (or other content types such as pages, testimonials, or projects) on your website in different visual layouts. This guide will show you how to work with the Query Loop block.

About the Query Loop Block

The Query Loop block displays posts and other content on your site based on certain criteria, like category, tag, or publish date. The term “Query Loop” refers to the way WordPress “queries” (or searches for) specific content and “loops” through that content to show multiple posts.

The Query Loop block is a useful option for building engaging pages that automatically update as you add new posts. When you edit a block theme in WordPress, you’ll likely find this block used in common areas of a website like the blog page, news section, portfolio, and other places where new content is shared regularly.

You can also add a new Query Loop block via the + block inserter in the same way as you would add any other block. When you add the block for the first time, you can choose from a collection of predesigned layouts that you can later customize:

Query Loop block inserted, with options to choose a pattern or start blank.
Adding a new Query Loop block

Customize the Query Loop Block

Learn more about how to customize the content and appearance of the Query Loop block in the following guides:

Was this guide helpful for you?

Not quite what you're looking for? Get Help!

Copied to clipboard!