Answer the question
In order to leave comments, you need to log in
How to quickly replace one city on the pages with other cities?
Hello please tell me the solution. Service website on WordPress. A page was made for each service in Moscow, + it is necessary to make the same pages for all cities of the Russian Federation only in Title, Discrimination, and in the Text it is necessary to change "Moscow"; "Moscow" to "Abakan" "Abakan" and so on for each city of the Russian Federation. I made drafts with the Duplicate Page and Post plugin, and now it’s very long and tedious to fill in all this (change the names of cities) manually, there will be a lot of them. Suggest a solution to automate or simplify the process of replacing one city with another on the page. Perhaps there are some programs or plugins.
Answer the question
In order to leave comments, you need to log in
Consider an alternative: Don't duplicate pages for each city, but make pages and meta tags dynamically change city names depending on the selected city. This approach is called geotargeting .
To create unique links, you can set up regional subdomains (for promotion in Yandex) or regional directories (for promotion in Google). Directories in the WordPress CMS are more difficult to set up.
For geolocation and geotargeting, you can use the WT Geotargeting Pro plugin for CMS WordPress.
There is a case where such an implementation is described:Setting up geotargeting on the site of a training company...
Here is the way I use:
1. Create an excel table with cities and their declinations
2. Take a library for working with excel, for example SimpleXLSX , you can put an array with declinations in wp_options, here is an example
3. And then everything is simple - create a shortcode with attributes "city" and "case". Information about the city can be taken from the meta field of the page. In order not to write everything by hand, you can create all the pages in a loop usingwp_insert_post()
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question