database columns: post_title vs post_name
it’s the URL encoded version of your text. <?php echo urldecode(‘%d7%90%d7%90%d7%90’); ?> outputs: אאא post_name is the slug, so the characters have to be URL-safe.
it’s the URL encoded version of your text. <?php echo urldecode(‘%d7%90%d7%90%d7%90’); ?> outputs: אאא post_name is the slug, so the characters have to be URL-safe.
Here’s a proper multisite solution: Install WordPress directly on the root of your domain mysite.de. After that, setup a multisite and chose the subdomain option (Yes, subdomain! It’s far more flexible and you can use it with subdirectories as well). WordPress will ask you to update wp-config.php and .htaccess. To the wp-config.php add the following … Read more
There are already an en_US.po file in the theme you are using. You can simply make a copy of that file and rename it as pl_PL.po. You can now open the pl_PL.po template with poedit, do all your translations in there, and just save it. Poedit will automatically create a pl_PL.mo template. No need to … Read more
According to Polylangs Function Reference, pll_the_languages Displays a language switcher. And most probably it uses some additional CSS/JS to work. If you want to get the list of languages and display them with your custom code, then you can use this function instead: pll_languages_list($args); and it will return the list of languages. $args is an … Read more
Insights into WordPress Multi-Site, Domain Mapped, and Multilanguage site using WPML [closed]
Tip 1: do not use qtranslate. I’ve used for years and now I can say that never been money better spent than those for WPML, specially if compared to the work needed to solve problems qT brings. Also consider that WPML is compatible with a huge number of plugins and themes, in years I used … Read more
How make a multi language routes, with rewrite rules or rewrite endpoints?
My problem here is that get_query_var(‘language’) isn’t defined in the function set_my_locale Because get_locale (which applies the filter locale) is called before wp() (which parses the query & sets up the variables). You’ll have to manually inspect the request yourself: if ( strpos( $_SERVER[‘REQUEST_URI’], ‘/de/’ ) === 0 ) { // German } else { … Read more
Actually you need to hook in the ‘locale’ filter to set the language you want: add_filter(‘locale’, function($locale) { return esc_attr($_GET[‘language’]); }); Then in the links of your switch, you need to pass the language variable: <a href=”https://wordpress.stackexchange.com/questions/260015/<?php echo add_query_arg(“language’, ‘xx_XX’) ?>”>XX</a> Where xx_XX is the language locale code for language XX
http://codex.wordpress.org/Function_Reference/load_theme_textdomain