Answer the question
In order to leave comments, you need to log in
How to make a website for different cities?
Hello!
Tell me how best to implement the following: It is necessary to change some blocks on the site for different cities (Despite the fact that all other content remains the same), each city must be located on a separate subdomain
An important factor is that the general content must be changed in one place, and not on each site separately
How to do it? Is it possible through WP Multisite? (If so, how do I output the shared content?)
Answer the question
In order to leave comments, you need to log in
Hello, did something similar. At first I received the IP of the one who visited the site. Then I made a request to the database via api, received data in json, turned it into a regular php array. I wrote a function to check the country, then a check for the city and substituted the necessary content for each city. In your case, you can just do a redirect. But multisite had nothing to do with vp
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question