Content Query Grid

Automatically displays recently published content without duplicating it in the page.

Use this page as both implementation documentation and a visual regression fixture. Compare the editor canvas with the published page at every responsive breakpoint.


Basic example

Hello world!

Welcome to WordPress. This is your first post. Edit or delete it, then start writing!

Community stories from around town

Praesent congue lectus at sapien interdum, a aliquet tortor tempus. Nam commodo dolor id eros mollis, nec lacinia purus egestas. Aenean semper gravida dui,…

The people and process behind the result

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris at lacus in lectus fermentum imperdiet. Sed faucibus, erat at facilisis pulvinar, neque libero sodales…


Option examples

The basic example exercises this component’s visual presentation. Its remaining settings control content, identifiers, data sources, or interaction rather than a separate visual variant; use the option table below as the test matrix.


Available options

OptionPurpose and values
Post typeAny registered public post-type slug.
ItemsOne through twenty-four.
ColumnsOne through six.
OutputFeatured image, linked title, and trimmed excerpt.
AdvancedHTML anchor and additional CSS classes are available when supported by the block.

Editor workflow

  • Select the outer component to configure system-wide behavior in the block sidebar.
  • Select a nested item to configure content-specific behavior.
  • Use List View to add, reorder, duplicate, or remove nested items.
  • Preview desktop, tablet, and mobile widths before publishing.

Verification checklist

  • Editor and front-end appearance match.
  • Keyboard navigation and visible focus states work.
  • Text, labels, and controls remain readable at 200% zoom.
  • Small, medium, and large layouts behave as documented.
  • Saved markup contains no unexpected inline styling or invalid blocks.