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?
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We’re reaching out to our multilingual users to ask for help in translating ACF 6.1. Help make sure the latest features are available in your language here: https://t.co/TkEc2Exd6U— Advanced Custom Fields (@wp_acf) May 22, 2023
© 2023 Advanced Custom Fields.