-
I want to create a block that displays a custom section with posts. I see that there is a QueryControls component, but you need to recreate all the options that the Query Loop block already has. I'm looking for a simple solution. So maybe it would be possible to use Query Loop as a parent or a child of my block? Then my block could use the query parameters created by the Query Loop block in its own way.
When the Query Loop block is inside of my block, I only want my own template instead of the defaults. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Ok, it turns out that in the InnerBlock template you can add children of a particular block const TEMPLATE: TemplateArray = [
['core/query', {}, [
['my/custom-template']
]]
]; |
Beta Was this translation helpful? Give feedback.
Ok, it turns out that in the InnerBlock template you can add children of a particular block