Contains the block elements used to render content when no query results are found.
- Name:
core/query-no-results - Category: theme
- API Version: 3
- Block Type: Hybrid (static save + server enhancements)
Block Relationships
Ancestor blocks:
– core/query
Attributes
Defined via the attributes property in block.json.
This block has no custom attributes.
Supports
Defined via the supports property in block.json.
anchor:truealign:truereusable:falsehtml:falsecolor:typography:fontSize:truelineHeight:true
interactivity:clientNavigation:true
Context
Defined via the usesContext and providesContext properties in block.json.
Uses context:
queryIdquery
Block Markup
This is a hybrid block. It saves static markup that the server may enhance during rendering.
<!-- wp:query-no-results -->
<!-- wp:paragraph {"placeholder":"Add a text or blocks that will display when the query returns no results."} -->
<p></p>
<!-- /wp:paragraph -->
<!-- /wp:query-no-results -->
Source
- block.json (reference)
- Source directory — browse
edit.js,save.js,index.php, and more.