Support

Account

Home Forums ACF PRO Query Custom-Post-Type by it's map sub field address(es), within another query Reply To: Query Custom-Post-Type by it's map sub field address(es), within another query

  • Updating the arguments of the inner query has fixed the broken layout, there is actually HTML after the p tag in the marker, but still only showing the one marker and no custom post types in said marker. I’d missed the array inside an array for the meta query, which has now been updated.

    // args
    $args = array(
        'posts_per_page'	=> -1,
        'post_type'         => 'members', 
        'post_status'       => 'publish',
        'meta_key'          => 'which_countries',
        'meta_value'        => $location['address'],
        'meta_query'        => array(
            array (
                'key'		=> 'which_countries_$_country',
                'value'	        => $location['address'],
                'compare'		=> 'LIKE'
            )
        )
    ); 

    I’ve also updated the comparison to LIKE, but again no joy.

    Anyone any thoughts on this?