phantom language switcher
phantom language switcher
phantom language switcher
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
According to the documentation there are 3 Polylang functions that can help you here : The first to “remember” the user language. pll_current_language // Returns the current language pll_current_language( $value ); // ‘$value’ => (optional) either ‘name’ or ‘locale’ or ‘slug’, defaults to ‘slug’ returns either the full name, or the WordPress locale (just as … Read more
Hovering over the pen icons on the right hand side will display the page title in the respective language as a tooltip.
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
You mentioned setting the memory limits and execution time to unlimited, so this may not be the right answer. I thought I’d mention it anyway since it may help. Since you have so much content, you’ll have to find ways to accomplish this in the background rather than during the request. This is the perfect … Read more
One option is to create a single category.php file with conditionals. So, you would have something like this: <?php if(is_category(‘one’) || is_category(‘un’) { // your code here } elseif(is_category(‘two’) || is_category(‘deux’) { // your code here } ?> This way you can still output different code per category, but you won’t have to copy category-one.php … Read more
Polylang will not allow changing of language without translation
Page Template Selector Error
You must change the WordPress permalink settings. Go to Settings>Permalink and chose “post name” and save then reload the Polylang settings and the options should be available. I have not tried it with other permalink settings, but it cannot be “plain” which is the default. It took me 2 hours to figure this out…