I used to use third-party plugins (I tested both free and commercial ones) to do bi-lingual Wordpress websites, but now I want to be less dependent on third-party plugins.
Question:
Have you achieved to do a 2-language website with no plugin at all? If so, can you describe the workflow?
Example:
Write normal pages
example.com/en/about
andexample.com/de/about
, the first with tagenglish
, and the second assigned to taggerman
Add a widget with two flags. Clicking on english flag will replace current visited page's URL by the same URL with
/en/
at the beginning. Clicking on german flag will replace current URL by the same URL withexample.com/de/...
. This should be possible with a few lines of PHP I guess?Have you found a way to prevent all pages (of both languages) to be displayed at the same time in the menu? Also, how to prevent all articles (of both languages) to be displayed in the blog part?
$lang = urlBeginsWith('/en/') ? 'english' : 'german'
) and then, based on this variable, 1) *display only pages with tagenglish
in the menus and 2) display only articles with tagenglish
in the blog part. Maybe is there a built-in way to display only articles/pages with a certain tag? If this is possible, I can totally avoid a multilingual plugin.