Skip to main content

Posts

A query-driven grid or list of posts — a blog index, a related-articles strip, a filtered archive. Core has Query Loop; this is the one with card layouts, live filters and image treatments.

The block renders through the posts element — the same PHP that runs in the page builder, so the front end is identical either way.

What the sidebar exposes

OptionWhat it does
use_current_queryUse the page's own query instead of building one
post_typeWhich post type
taxonomy_filterRestrict by taxonomy terms
taxonomy_relationAND or OR across those terms
include_idsOnly these posts
exclude_idsNever these posts
author_idsRestrict by author
date_rangeRestrict by date
posts_per_pageHow many to show
offsetSkip this many first
orderbySort field
orderAscending or descending
exclude_currentLeave out the post being viewed
sticky_handlingWhat to do with sticky posts
designLayout family, and its settings
cardCard style, and its settings
card_rowsWhich rows a card shows, and in what order
box_styleCard box / border preset
image_styleImage treatment preset
image_sizeWhich registered image size
image_ratioCrop ratio
card_paddingCard padding
text_alignText alignment
mobile_layout_overrideA different layout on small screens
title_tagHeading level for card titles
cat_positionWhere the category chip sits
cat_maxHow many categories to show
meta_itemsWhich meta to print — date, author, comments
meta_layoutHow that meta is arranged
date_formatDate format
excerpt_sourceWhere the excerpt comes from
excerpt_lengthExcerpt length
excerpt_suffixWhat follows a trimmed excerpt
readmoreRead-more link style, and its settings
readmore_textRead-more text
paginationPagination style, and its settings
live_filtersShow filter controls to visitors
filters_positionWhere those filters sit
no_results_textWhat to say when nothing matches
text_colorBody text colour
bg_colorBackground
title_colorTitle colour
excerpt_colorExcerpt colour
meta_colorMeta colour
accent_colorAccent colour
font_size_presetText size preset

Anything not listed stays available in the page builder, and round-trips untouched — the block only writes the values you change, so an element styled in the builder keeps every setting this sidebar does not show.

The query runs for real in the editor

The canvas shows actual posts from this site, not a mock. That is the whole reason this block is worth having over a placeholder — you can see whether the query returns what you meant.

What it does not do: pagination does not paginate, and live filters do not filter. Both would swap the preview's contents for a different set of posts, leaving you unsure which query you were looking at.

note
meta_items is a checkbox list

It is a checkboxes option — tick the meta you want. Only ticked entries are stored.

Caching stays in the page builder

cache_output and cache_hours are not exposed here. A cached block previewing a stale query in the editor is a confusing first encounter with caching, and the setting is better made once, deliberately, where the whole page is in view.

Margin and padding come from Gutenberg

The block declares core spacing support, so the element's own spacing option is not exposed here — use the Dimensions panel at the top of the sidebar.