Can I use two languages together in WordPress
Yes. Language Switcher WordPress Plugin qTranslate WPML – the best, but commercial
Yes. Language Switcher WordPress Plugin qTranslate WPML – the best, but commercial
I found a solution, realy dirty, but works. In the core.php file of the polylang plugin I found this stuff: // NOTE: I believe there are two ways for a plugin to force the WP language // as done by xili_language and here: load text domains and reinitialize wp_locale with the action ‘wp’ // as … Read more
When every message is hard coded in the theme files there can be no problem with gettext anymore. So, yes, depending on the theme WordPress can use different templates for home and other pages. But no, this has nothing to do with automatic translations. You have simply forgot to translate some strings, possibly in front-page.php … Read more
You might be interested in url_to_postid function Used as follows from your wpsx_redefine_locale function: $url = $_SERVER[‘REQUEST_URI’]; $postid = url_to_postid( $url ); Note that this does not return the post id for custom post types but the function is located in /wp-includes/rewrite.php and might be extended if needed. UPDATE: here’s your sample: function my_function(){ if … Read more
A WordPress Multi-site can handle multiple languages with individual themes and plugins activ. It’s like having multiple sites, one for every language, within one Installation. Every Site can have it’s own design, set of activ plugins and users. Read troth Method No. 5 on this Page for Details and Plugins that can help: http://codex.wordpress.org/Multilingual_WordPress
If you will use the translation only in back end, then load the translation file on the hook admin_init. If not, also on front end, then use the hook init. A example: class Fb_Example_Class { /** * Constructor, init the functions inside WP * * @return \Fb_Example_Class */ private function __construct() { // load translation … Read more
I ended up encoding the redirect url. using php in my case (‘http://example.com/wp-login.php?redirect_to=’.urlencode(http://example.com/specificpage/?parameter1=dog¶meter2=dog¶meter3=cat));) Now it works!
It is due to css: Check this(Line # 314 style.css): .search-form .screen-reader-text { left: -9999px; overflow: hidden; position: absolute; } Remove the left margin then it works fine. It is on sidebar search form. Sorry for English. Thanks
Luckily the plugin developer made two separate file sets, one for frontend and one for backend. So I was able to delete the it-IT backend files, copy the en-US ones and rename the copies as it-IT. So wordpress thinks it’s loading the Italian backend translation while instead the English one gets loaded. And being frontend … Read more
I’m totally shocked. After hours of trying things and testing, I finally found the “Settings” then “Readings” option below: “Encoding for pages and feeds”. After changing from UTF-7 to UTF-8, everything looks good again. And even stranger, after changing it to UTF-8, the option disappears from the page. According to WordPress site, this option was … Read more