Thanks MInesh,
It looks like the never the twain will meet as the old saying goes.
To be honest the road that WordPress has taken with the Gutenburg has been a bit of a hot mess, where users are now expected to be backed into its own definition of web develoment, which by the way is miles of proper web practices, html markup standards and a complete abstaction away from a true understanding of CSS.
Matt Mullenweg and his Gutenburg team missed a big trick by not basing the develpoment side of WordPress .org on a proper IDE environment, where all html, CSS and JS is accessible to developers via third prty builder tools, all of whom need to conform to propre standards and conventions. Turn off one tool, turn on another and all layouts, content and styling is intact. In fact the block editor as we know it would be the WordPress default, for beginers and to have something in place until thied party tools are activated. There would be no more themes as they are not required. No more where did my site go, with all the content when themes are swapped. But I guess Matt just really doesn't think about the end user. He's made his deals and money and now sits on his jazz laurels.
But, there is some light at the end of the tunnel when we look over to Etch WP. Check it out, because this is the answer to all the half concieved builders like Elementor, and Divi for that matter. This is a full on development environment where we do get access to the html, CSS and JS and therefore a lot more fleinilty than the restrucctions and in retrospect terrible workflows of older offerings in the page builder space.
There is also Bricks builder and while not as advanced as Etch, it does allow to put together loops directly in its builder interface. So, for filtered views, based on relationships, I am able to use the following to set this up and structure styled cards directly in Bricks:
return [
'post_type' => 'print',
'orderby' => 'desc',
'posts_per_page' => '-1',
'paged' => 1,
'suppress_filters' => true,
'toolset_relationships' => [
'role' => 'child',
'related_to' => get_the_ID(),
'relationship' => 'print-year_print',
]
];
And this is the thing, by investing in time learning these things porperly, as any professional web developer should, we gain better insights into how to do these things properly. The hand held nature of the block editor is not the answer to doing serious work. It has its uses but is misplaced in the develpers toolbox. In fact if we look at the original HTML/CSS/JS UIfor views in Toolset, these were more in the spirit of direct web development.
I'll add that the above snippet is something that I had to hunt down in Toolset's documentation but it is buried behind a lot of other documentation focuesed on the block editor approach. It does a diservice to what can be done with Toolset, becauseI I am pretty certain that I am one of the rare users of this approach in Bricks.
I'll certainly test out your suggestion, but, more than likely I will be suggesting theme rebuilds (as in the builder used) in Bricks or Etch over the next few years, for client's sites built on Divi 4.