I want to display a Custom post Type "Companies" filtered by zipcode.
In my CPT I have an ACF field called 'companies_zip_code', their values looks like this :
29200 29860 35000 22350 ...
I want to display only companies where their companies_zip_code begins with
So I write this WP_QUery :
$args = array( 'post_type' => 'companies', 'post_status' => 'publish', 'posts_per_page' => -1, 'meta_query' => array( array( 'key' => 'company_address_zip_code', 'value' => 29, 'compare' => 'LIKE', ) ) ); $custom_query = new WP_Query($args);
With that I want to display only companies with zipcodes like this :
But it does not work
Thanks for your help !