I have a “Work” parent page, and then “Projects” as children. In each project I can add a “Quote.” In the parent Work page I load in a random Quote pulled from all the published quote blocks.
Is there a way for me to do the same thing on another page entirely? The way I’m doing it now only works on the direct parent:
<?php foreach ($page->children()->children()->shuffle()->filterBy('quoteToggle', 'true', ',' )->limit(1) as $featuredQuote): ?>
I want to be on another page entirely and do the same thing. “Load in a random quote from any of the published quote blocks in project pages.”