-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Query block: Add a configurable "no posts found" state #36609
Copy link
Copy link
Closed
Labels
Needs DesignNeeds design efforts.Needs design efforts.[Block] CommentsAffects the Comments Block - formerly known as Comments Query LoopAffects the Comments Block - formerly known as Comments Query Loop[Block] Query LoopAffects the Query Loop BlockAffects the Query Loop Block
Description
This is particularly important for the search template in block themes. Currently, if a search returns no results then the query renders nothing on the frontend:
search.mp4
Ideally it should at least inform the visitor that no results were found for their search term. But it would be better to offer folks a way to customise this state with blocks.
Some design consideration will be required here, as blocks cannot currently entertain multiple states.
This affordance could also be useful in other scenarios:
- Post Content block – enable users to control how password protected posts appear
- Design separate empty / full states for Shopping Cart blocks in plugins like WooCommerce
- Log in / out block – finer control of each state
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Needs DesignNeeds design efforts.Needs design efforts.[Block] CommentsAffects the Comments Block - formerly known as Comments Query LoopAffects the Comments Block - formerly known as Comments Query Loop[Block] Query LoopAffects the Query Loop BlockAffects the Query Loop Block
Type
Fields
Give feedbackNo fields configured for issues without a type.