Questions tagged [polylang]

Polylang is one of the most well known multilingual plugins for Wordpress

217 questions
2
votes
2 answers

Switch footer for different languages on Wordpress website using Polylang plugin

Wordpress Polylang plugin doesn't seem to translate my footer widgets. So I was thinking about creating separate footers for the different languages and calling the correct footer via a function in my child themes functions.php that checks the page…
Dayley
  • 166
  • 1
  • 2
  • 13
2
votes
0 answers

Wp_query argument 'post__not_in' don't work with 'tax_query'

Prepairing a function of similar posts faced the problem with wp_query. My args: $args = array( 'post_type' => 'post', 'post__not_in' => array(pll_get_post($post->ID,'ru'),pll_get_post($post->ID,'uk')), 'posts_per_page' => $count, …
2
votes
2 answers

Polylang Wordpress plugin custom string translations not working in expected way

I'm using Polylang plugin on recent website. Posts and pages, also categories translations work perfectly. But I have problem with translations of custom strings. I am registering string in my functions.php file…
Tomasz Jacek
  • 53
  • 1
  • 9
2
votes
2 answers

Wordpress Polylang multi-language static front-page.php

Looking for someone with experience with multilingual sites and perhaps the Polylang plugin. According to the documentation it is possible to use a static front page: "You have to create one page per language. Set translations as usual and then go…
Erin
  • 85
  • 2
  • 13
2
votes
1 answer

woocommerce category translation

I'm trying to create a web shop with WooCommerce and Polylang. When I click the '+' icon in a product category in order to translate it into French, I'm routed to a 'new category' form. After I created the 'book' category in French ('libre'), I see…
xtofl
  • 40,723
  • 12
  • 105
  • 192
2
votes
1 answer

Delete number (/en/blog-2) on Wordpress multi language site

So I've created a multi language (using Polylang) site on Wordpress and I have a blog there. All URLs start with the language slug and then the page/post name. Of course, I have 3 blog pages, but is there a way to delete the number from their slug?…
user3219369
2
votes
2 answers

How to maintain specified fields invariate between linked custom posts with polylang

I've create some custom posts on my customized theme in wordpress, in which the polylang plugin is activated. The translation works well, but the problem is that I need that specified contents remain the same between translated posts. With the…
Nikaido
  • 4,443
  • 5
  • 30
  • 47
1
vote
0 answers

Goods are not displayed from Woocommerce with AJAX-request in a non-default language

I have a wordpress site with woocommerce and polylang plugins. I need to filter products by category. For the default language, everything works correctly. But products are not displayed in another language. Each language has a unique set of…
1
vote
0 answers

Polylang & CPT UI: translate label name

The problem is: I need to translate custom posts and taxonomies names which is not available on the edit or create GUI of CPT UI. I thought maybe it was a feature of the Pro version but the documentation says nothing about that. What am I…
1
vote
1 answer

Polyland Wordpress Output a drop-down list headed by the current language

I want to create a drop-down menu in my site header. I use this code:
1
vote
1 answer

Different languages for one country instance on Wordpress

I have very specific question. We need to create multilangual site on Wordpress with the custom permalink structure. It should be like that: / - homepage /es-es/ - Spain and Spanish language /es-en/ - Spain and English language etc But none of WP…
Shustoff
  • 11
  • 1
1
vote
0 answers

Polylang language switcher as a shortcode

I am using Polylang and I want to put the language switcher next to logotype and cart icon on mobile header. Polylang gives the php code that I can add to the template, but I want to add it as a shortcode. Is there any way to put the language…
user3679378
  • 23
  • 1
  • 3
1
vote
1 answer

Polylang redirects to homepage when translation post not found - WordPress

If the translation of the post is not available, Polylang redirects to the home page. Could the redirect be avoided or show previous post? Thank you.
1
vote
1 answer

Wordpress Polylang adding pll_e breaks HTML

i'm using polylang to translate my blog site along with loco translate. i'm manually adding string translations which was working fine with get_theme_mod parts, but there is a place that i want to also add custom string translation, after i add…
1
vote
1 answer

Wordpress Polylang plugin: Problem with transferring categories to duplicated posts in Polylang

I am using the plugin Polylang in WordPress and trying to do the following: The Goal Avoid the default behaviour of Polylang of creating category translations when a post gets duplicated using Polylang duplication featured. Only categories that…
Butzke
  • 11
  • 3
1 2
3
14 15