You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The user does not see anything if there is no content in the query loop, especially in a template for the search page in FSE.
A bad UX. Which forces us to create a template in PHP and evidence that FSE is not yet mature.
See, found posts:
When there are no posts:
What is your proposed solution?
I'm not sure, but we need a way to configure fallback content for this situation.
The text was updated successfully, but these errors were encountered:
Hi!
In Gutenberg version 12.9.0 there is a new block that you can place inside the Query loop, called "no results".
The blocks that you place inside this container are shown when there are no results to show. You can place any blocks inside it.
Hi @AdsonCicilioti, I just tested and confirmed @carolinan's recommendation above. The No Results block was added in 12.9, here is the relevant PR: #38806. Note that this block will only be an option when you are adding a block directly to the Query Loop block. If you try and add the block to the Post Template block, it will not show up as an option. The setup you want looks like this:
Since there is a solution, I am going to close out this ticket, but please let me know if you have any additional questions!
What problem does this address?
The user does not see anything if there is no content in the query loop, especially in a template for the search page in FSE.
A bad UX. Which forces us to create a template in PHP and evidence that FSE is not yet mature.
See, found posts:
When there are no posts:
What is your proposed solution?
I'm not sure, but we need a way to configure fallback content for this situation.
The text was updated successfully, but these errors were encountered: