How to display content depending on the city?

How can I implement that in dependence on the city display different content. Geolocation by IP is not needed, simply select a previously entered city.
September 26th 19 at 11:40
2 answers
September 26th 19 at 11:42
Good afternoon.
If you have two tables cities and content, organize a connection between them many to many and the existence of a relationship determine what content to show.
September 26th 19 at 11:44
Taxonomy Of The City. Remember in the cookies. Or usermeta. And then pre_get_post and output depending on the city

Find more questions by tags WordPress