admin管理员组

文章数量:1129021

We are using the search gutenberg block on a new gutenberg site for our search form, but can't figure out which block to use on the search results page to display the search results?

Step 1 in this image is easy, can't figure out the results display portion. which block to use on the the gutenberg block template with the slug search to display the search results? We can get a block template to render when any search is executed but are at a loss which block to display the results grid/list based on that search query.

We are using the search gutenberg block on a new gutenberg site for our search form, but can't figure out which block to use on the search results page to display the search results?

https://github.com/WordPress/gutenberg/pull/13583

Step 1 in this image is easy, can't figure out the results display portion. which block to use on the the gutenberg block template with the slug search to display the search results? We can get a block template to render when any search is executed but are at a loss which block to display the results grid/list based on that search query.

Share Improve this question edited Apr 2, 2020 at 3:18 Will 7997 silver badges24 bronze badges asked Mar 31, 2020 at 18:00 Joshua JarmanJoshua Jarman 112 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 1

This is possible using the query loop block.

In that block's sidebar, make sure that you have "Inherit query from template" toggled on.

(Previous edit, in early 2020, stated that displaying search results as a block was not yet possible)

本文标签: How do I use a block to display search results