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 badges1 Answer
Reset to default 1This 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
版权声明:本文标题:How do I use a block to display search results? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736722513a1949548.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论