Similar to the variations links, where we use the blockinfo block to display links to variations of the block, it would be nice to display (other) examples for a Block or other Block examples for a Block example.
Requirement
For a Block display a list of links to (other) block examples, if there are any.
For a Block example display a list of links to other block examples, if there are any.
Do this automatically for each Block or Block example
Don't display a heading if there aren't any results.
Proposed solution
[ ] A template part for other_block_examples
[ ] Implementation to make use of the [bw_related] shortcode.
bw_related shortcode
For Blocks the bw_related shortcode that's required is:
[bw_related post_type=block_example]
For other Block examples we can implement the equivalent of this shortcode
Similar to the variations links, where we use the
blockinfo
block to display links to variations of the block, it would be nice to display (other) examples for a Block or other Block examples for a Block example.Requirement
Proposed solution
[bw_related]
shortcode.bw_related shortcode
For Blocks the bw_related shortcode that's required is:
For other Block examples we can implement the equivalent of this shortcode