Questions tagged [polylang]

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

217 questions
3
votes
1 answer

Custom post type multilingual with Polylang

I have this issue that i do not now how to solve. We have a wordpress page that is multilingual thanks to Polylang plugin. Everything works great except custom post type from other plugin. Post created with this custom post type loads content for…
Luke
  • 362
  • 1
  • 4
  • 13
3
votes
1 answer

WordPress Saving translation post when creating new post

I wan't to achieve following: I have to save a duplicate of a newly created post if a user creates a new post (cpt). Afterwards I will set this new post with Polylang to another language as translation for the post created in step one. Hook into…
Ole_S
  • 356
  • 1
  • 3
  • 21
2
votes
1 answer

Filter Membership Plan Title and Slug

I would like to filter the titles of my WooCommerce Memberships plans depending in the current language (using PolyLang). The following works on the back end, i.e. I can see that the membership plan title (for membership plan with post_id 3884)…
Uwe
  • 85
  • 1
  • 5
2
votes
0 answers

Is there a way to translate products in woocommerce with Polylang, but without duplicating them?

I have a wordpress installation with a woocommerce and free version of Polylang plugin. With polylang i can translate, for example, pages and posts - it creates a separate page for some kind of content. And it is good! But in case of translating my…
creators
  • 179
  • 8
2
votes
0 answers

Mismatched hreflang and HTML lang declarations and cannonicals

there is a redirect I tried to do on my site, but I am quite confused in it. First of all, I have SSL installed on the site and I use non-www domain redirect. In the .htaccess file below 301 redirect to https://. If I need to summarize the…
2
votes
1 answer

Is there a way to keep all the query parameters in URL when changing language by Polylang plugin?

When setting queries in the URL for posts on a page then changing the language by polylang plugin it resets the link and gets rid of the parameters and queries. The page is built on Wordpress on a custom theme I develop.…
Tad
  • 73
  • 9
2
votes
1 answer

wordpress Polylang function pll_the_languages() return empty string and not the switcher?

I have a problem showing the polylang switcher in my wordpress custom theme header.php. $mlkLng = pll_the_languages(); var_dump( $mlkLng ); //this return a string(0) "" I have 3 languages in my site i can see it with the function var_dump(…
2
votes
1 answer

Specific filter for URL popover in post editor

I'm using WP 5.3 with the default (Gutenberg) editor along with the Polylang 2.7.2 plugin for making the site multilingual. Using Polylang, each post consists of one translation post per language (Polylang groups translation posts together). Now I…
Damocles
  • 1,287
  • 1
  • 7
  • 9
2
votes
0 answers

Polylang doesn't recognise content from Duplicate Page plugin

I've got a website written in English, and have added Polylang Wordpress plugin and activated / added German. I also use the WP Bakery page builder to build the layout for the content. Rather than manually re-build each German page for translating,…
2
votes
0 answers

Content Type for URL automatically changing from text/html to application/rss+xml when loading RSS URL /feed/

There are a series of weird behaviors which all seem to be stemming from a Content-Type header issue. The site will be running fine but then the problem happens "randomly" throughout the day. But I can replicate the problem by doing the…
yogui
  • 21
  • 1
2
votes
1 answer

Polylang disable translation for posts

I'm using polylang on my wordpress page. I want to translate the pages, but keep the blog in only one language. I've used this hook: function turn_blogposts_translation_off( $post_types, $is_settings ) { unset( $post_types['post'] ); return…
Filip
  • 855
  • 2
  • 18
  • 38
2
votes
3 answers

Wordpress Migration and Polylang not working

I'm trying to migrate my website to my localhost and the homepage is not working porperly. My steps were: Download through FTP all the files of the wordpress website and put them inside a folder on my local environment (WAMPP); Export the online…
churros
  • 419
  • 1
  • 8
  • 20
2
votes
1 answer

Only one language in Polylang String Translation

I need to translate some strings in Polylang / String Translation but ther is only one language in the table: I have two language created in polylang French and English: I should have a table like in the docs:…
user777466
  • 991
  • 2
  • 13
  • 21
2
votes
1 answer

Polylang is changing my homepage - Wordpress

I just finished my first custom wordpress site, using my custom theme, and now, I was starting to translate the site, I need it to have 3 languages. So, I installed the plugin Polylang. But, I don't know why, when this plugin is active, my home…
churros
  • 419
  • 1
  • 8
  • 20
2
votes
2 answers

Show default language content if no translation for post

I have a multilingual Wordpress site with plugin Polylang and the problem is that when I'm seeing site in other language the posts are not showing if there is no translation for the post. $latest_blog_posts = new WP_Query( array( 'posts_per_page' =>…
Sergi Khizanishvili
  • 537
  • 1
  • 7
  • 16
1
2
3
14 15