Multiselect to Pages

Is it possible to create collection of pages from multiselect field?

Blueprint

populargames:
label: Popular Games
type: multiselect
options: query
query: site.find(‘games’).children

How do I try to create collection

<?php $populargames = $page->populargames()->toPages(); ?>
<?php foreach($populargames as $populargame): ?>

When $page->populargames()->toPages(); is only one item it is works, if more that one no

Is there any quick solution for this?

This should work:

<?php $populargames = $page->populargames()->toPages(','); ?>
6 Likes

:love_you_gesture: You rock!!!

I literally ran into this issue again.
Thank goodness for the forum!

1 Like