S
S
Stanislav_Petrovich2021-09-18 15:13:08
WordPress
Stanislav_Petrovich, 2021-09-18 15:13:08

Wordpress city selection followed by a redirect to a subfolder how to implement?

Comrades, save. vp beginner. How to implement a WordPress city selection followed by a redirect to a subfolder?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
denn, 2021-09-18
@iDx

Use WordPress Multisite with the subfolder feature so you don't proliferate the core of WP.

A
Artem Zolin, 2021-09-19
@artzolin

It depends on your task: if each city is just a landing page, then it’s enough to make them as pages with templates and a regular select to select, and if these are full-fledged sites, then multisite is a good solution
. Just keep in mind that not all plugins support this and manage it software is a bit more complicated. Get a list of sites get_sites()and collect select from it

R
Roman Kusty, 2021-10-08
@roman_tlt

Check out the WT Geotargeting plugin for CMS WordPress. With it, you can implement on the site the choice of the city and the change of phone , and any other information.
But with regional directories, everything is not so simple. The WT Geotargeting plugin does not fully support regional directories, for this reason you need to either create them manually (in the form of pages) or configure Url generation and parsing using WordPress tools: WP_Rewrite() core class and URL rewriting functions (NC) .
As an alternative, you can consider not regional directories, but subdomains . They are supported by the WT Geotargeting Pro plugin.- extended paid version.
How are subdomains different from directories?
Regional subdomains are suitable for promotion in Yandex, and directories are suitable for promotion in Google. Thus, you need to build on the target audience.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question