Issue with Polylang on user profile page
Finally i added javascript code in the footer of the page. This script checks the current language on the page, then iterates through all links and replaces the href tag with the correct one.
Finally i added javascript code in the footer of the page. This script checks the current language on the page, then iterates through all links and replaces the href tag with the correct one.
Where Language settings stored in MySQL multilingual Polylang website?
just to add comment for future if somebody have same problem.. polylang from version 1.8 will add options to add flag from plugin settings page, right now you can get this version from link https://wordpress.org/plugins/polylang/developers/ just download “Development Version (svn)” but only if stable version 1.8 its not released
You can disable the translate of your cpt in polylang and use translated pages to display your cpt posts. In your page template, detect if the current language is english and use your custom translation code to display those translated fields. I want an URL like : www.domainame.com/en/ You can set it up in the … Read more
The redirecting “drop-down” (select element) part of your question can be answered by looking at this fiddle that someone made for a different question: https://jsfiddle.net/jalbertbowdenii/2f9wvyqm/ As far as getting the flags to appear in the option elements of the select element, the only way to get it to work cross-browser (that I know of), would … Read more
For those that may stumble on this, please first read the link provided by @Kaperto Which provided me with the syntax; printf( _n(‘The %s page’, ‘The %s pages’, $number, ‘text-domain’), get_the_title() ); The examples in the link above cover most of what is needed when dealing with variables in translation strings
Yes it is possible. For a more comprehensive answer, see: https://polylang.pro/doc/define-your-home-page-as-a-static-page/
Apparently Polylang has an undocumented pll_save_post API method. See here: https://wordpress.org/support/topic/programmatically-set-post-language-and-translations