I have a subfield (“Page ID”) which allows us to select multiple pages from the Post Object dropdown list to be displayed as featured. I need to loop through these pages in a WP query using the metas but it doesn’t seem to be working how I’ve tried it.
$args = array(
'post_type' => 'page',
'posts_per_page' => -1,
'meta_query' => array(
'key' => 'group_subgroup_page_id',
'value' => '"' . get_the_ID() . '"',
'compare' => '='
First of all should we be seting the return format of the Post Object to be the Post Object or the ID? And then how should the meta query look?
Thank you hugely in advance!