I have a custom content type with a postal_address field provided by the module addressfield. postal_address fields are one field in the custom content type. This one field is comprised of many subfields like: country, name_line, and postal_code.
How can the core function EntityFieldQuery be used to retrieve nodes of my custom content type based on their postal code value (a subfield of the postal_address field)?
Specifically, I do not know what to put in the code below instead of the text: what_goes_here:
$query = new EntityFieldQuery();
$entities = $query->entityCondition( 'entity_type', 'node' )
->propertyCondition( 'status', 1)
->propertyCondition( 'type', 'consumer_store' )
->fieldCondition( 'what_goes_here', 'value', $postal_codes )
->execute();
EntityFieldQuery
as you would with any other field type. Where are you stuck exactly? Could you post the code you've tried with results/error messages etc?