Duplicate Slugs on multilingual site (with Polylang)

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

Keeping shortcode-generated widget and theme element in one line [closed]

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

Polylang – display one post into 3 categories with different lang [closed]

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

Language switcher with flags – Polylang WP plugin

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

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)