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.
You can add taxonomy-subtopic-copyright.php and taxonomy-subtopic-trademark.php archive templates if you need that much granularity.
Go on your back-office, and go on Polylang (Languages) Settings. Then, on URL modifications, check if the option “The language is set from the directory name in pretty permalinks” is checked. If not, check it. Then click on Save changes. Now, you should see this option below : “Share slugs Activated” “Allows to share the … Read more
WordPress + Polylang – Error 404 when trying to preview draft post on different language
Translation related post text to Arabic
An script/Plugin for automatic page creation per term
Where Language settings stored in MySQL multilingual Polylang website?
To get rid of the bullets and change the alingment you’ll need CSS. For the top portion: aside.widget_polylang.amr_widget, aside.widget_polylang.amr_widget ul, aside.widget_polylang.amr_widget li { /** align with li */ display: inline-block; float:right; /** remove bullets */ list-style: none; } ul.social-icons { /** align with li */ display: inline-block; float: right; } For the bottom portion: aside.widget_polylang … Read more
to retrieve all posts of all languages in a category, you need to desactivate the auto-translate during the request. you can try that : $categories = get_the_category(); $category_id = $categories[0]->cat_ID; remove_filter( ‘get_terms_args’, array( PLL()->auto_translate, ‘get_terms_args’ ), 10, 2 ); $posts = []; foreach (pll_languages_list() as $language_code) { $posts = array_merge( $posts , get_posts([ “category” => … Read more
In meantime, maybe I have on.. I do not want to use some big scripts or something so I did this simple one.. I will write here if somebody else need it.. 1.) I create sidebar in my theme, and add it to header <div class=”drop-dl”> <a class=”lang-chose” href=”#”><img src=””> Chose language</a> <?php get_sidebar(); ?> … Read more