Query Loop Block Variation not working
-
I am trying to extend the Query Loop block with a custom query. I have created a variations.js file that is pulled in by my theme, and I did a simple test of extending a different kind of block from a different tutorial, and it all works fine – so I know this is part of the setup is in working order.
Now I am using code from developer.www.ads-software.com to create my query loop block variation, and it just doesn’t work for me. No new block shows up in my block inserter. Why?
I am using this chunk of definition code: https://developer.www.ads-software.com/block-editor/how-to-guides/block-tutorial/extending-the-query-loop-block/#offer-sensible-defaults
Mine just changes the postType to ‘news’ since I do not have a ‘book’ CPT, but do have a news one.
- The topic ‘Query Loop Block Variation not working’ is closed to new replies.