How can I filter a query by post id?
So you want the values 108,78,90 corresponding to the meta key ‘areas’ for the post with ID 94? First retrieve those IDs: $the_post_id = 94; $area_ids = get_post_meta( $the_post_id, ‘areas’, false ); //Make sure they’re all positive integers $area_ids = array_map( ‘absint’, $area_ids ); if( $area_ids ){ //We have IDs, retrieve posts $areas = get_posts( … Read more