I have two custom post types: Country and City.
Country
There is just a text field to fill with its name.
City
I have a text field for city's name and also a select with all the countries that was added in the other custom post type.
My question is, how to get for each city, its own country?
To retrieve the cities I'm using:
$args = array (
'post_type' => 'cities'
);
$query = new WP_Query($args);
In this result of cities, I don't have any information related to the country that I select in the admin area.
Thanks!