I'm experimenting with a custom query block for the fun of it. I would like to leverage the components that come with core query inner blocks (title, excerpt, featured image, etc..). For this test, I'd like to leverage core/post-title within my custom query. However, that doesn't seem to be possible.
My custom query block works if I set the value of a component value={post.title}
. When trying the same thing with InnerBlocks, the query is not passed to the InnerBlocks.
I'm still green when it comes to Wordpress development, direction or experience is much appreciated.
edit: () => {
<!--useState and useEffect and custom apiFetch stuff-->
return (
<div>
<InnerBlocks /> <!--utilize core/post-title with custom query-->
</div>
);
}
note: I'm aware that I can just use a query block. Humor me.