I’m away on vacation very soon. I’ve taken the opportunity to release another beta version of my oik-blocks plugin with a new block called Dynamic content block ( oik/content-block ).
This block implements 11 of my dynamic content shortcodes delivered by the oik base plugin, hence the prefix. When it’s ready for production then I’ll deliver the block in oik v4.1.0.
Example
Here I use it to implement the same output as the bw_pages shortcode for WooCommerce products, using the default display: Title, Featured image (as a link), Excerpt and Read more button. The posts are ordered by Title, in descending order.
Notes
There have been a few challenges implementing this block. I’m not the only one who has suffered them. I came across at least two Gutenberg issues, neither of which have a satisfactory solution. One of them is “working as implemented”.
I’ve been learning a bit more about Gutenberg’s React based JavaScript but I’m still struggling with understanding syntax and semantics. I had hoped that my work on building the WordPress Blocks Reference would help with my understanding of the source code I might need. But it hasn’t helped as much as I’d hoped.
Further reading
The block will be documented in oik-plugins.com and blocks.wp-a2z.org.
On oik plugins I expect to provide quite a few examples, showing the 11 different layouts.







