Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [plugin-polylang]

Please note: Support questions for this plugin are off topic. You should follow the plugin's support route for assistance.

0
votes
0answers
6 views

sUse same content for different languages with language in url

I have a post-type "inventory" that don't need translations. I have made a page-template and made pages for all languages in wordpress and assingned the inventory page template to it. So I have /en/...
0
votes
0answers
18 views

Polylang - how to use array to translate strings

I’m using polylang to translate strings in my theme. I’m wondering is it possible to declare strings in array like $langs = [ 'item' => 'my string', 'next' => 'another string', ]; And ...
0
votes
0answers
12 views

How to import multiple language mutations to polylang?

I have set of posts that i want to import to wp and they alel have 3 lang mutations. I used foreach($pole as $key => $objekt){ $postid = wp_insert_post(array('post_type' => 'etapa','...
0
votes
0answers
13 views

Multilanguage backend interface

I manage a site that is available in 5 languages, including English. The Polylang plugin is used to achieve this. The problem is that I only understand two of the languages, and it's cumbersome to ...
0
votes
1answer
78 views

How to translate custom Divi module using POEDIT and Polylang [closed]

I am using Divi theme and Polylang plugin. I use Polylang to add Bosnian language (bs_BA). I know how to register strings for Polylang and translate them that way, but I can't manage to do plurals ...
1
vote
0answers
19 views

Posts gathered from WPEMatico feeds are being mixed in different languages. Polylang is used for language separation

I have set up RSS feeds in WPEMatico in different campaigns, each one gathering news in different languages. The campaigns are then connected to different Post Categories, each of which is set up in a ...
0
votes
1answer
377 views

Get Polylang available languages on admin page of my plugin

I am making an plugin, and inside my admin page (Which i add by add_menu_page() function) i call this function pll_the_languages(["raw" => 1])) but its return nothing,on client side its work fine. ...
2
votes
1answer
118 views

WordPress multilingual website domain and folders

Answered & edited ! I have a single Wordpress installation on example.com. I use Polylang plugin to add multilingual system to this website. I have 16 languages, and it's configured to use ...
0
votes
0answers
105 views

WordPress + Polylang + NGINX == 404 errors

I have a WordPress site set up with Polylang. Normal posts get translated and shown fine. But Pages all return 404 when trying to access them via their "pretty urls". Accessing them via query string ...
0
votes
1answer
29 views

how to remember specific action/event for current user?

i have made multi-language site thanks to polylang now i dont want to use polylang's switcher as it causes layout issues so i found a better solution is by putting a link on top. for example if user ...
0
votes
2answers
55 views

How to make “virtual” translation with polylang installed (but without Polylang)

I have a CPT called "domaines" (its like vineyards in french). My site have 2 languages (french and english), configured with Polylang for pages and menus translation. I don't want to use Polylang ...
-1
votes
1answer
59 views

Polylang non translatable custom taxonomy

Polylang plugin documentation talks about non translatable custom taxonomy. I'm using the plugin Media Libray Assistant, which creates a custom media taxonomy named "attachment category". I woud like ...
0
votes
0answers
19 views

Set different page for logged in and guest user in wordpress with polylang support

if( is_user_logged_in() ) { $page = pll_get_post(1713); update_option( 'page_on_front', $page->ID ); update_option( 'show_on_front', 'page' ); } else { $page = pll_get_post(4142); ...
-1
votes
2answers
441 views

Get the ID of the default language equivalent page in Polylang [closed]

How can I get the ID of the default language equivalent for whatever page I’m currently on? For example, I’m on abc.com/es/mypage, I want to get the ID of abc.com/mypage. I tried setting up the ...
0
votes
0answers
20 views

phantom language switcher

Some background, I had an english installation of wordpress, with ENFOLD theme. (not my doing) the original developer installed polylang and turned it to multi-language site (two languages). I've ...
0
votes
0answers
48 views

Custom value in term REST API

I try to add custom value (lang from polylang) to tags rest api. Finally i have what I want but I'm not happy for my code. I have: { "id": 290, "count": 0, "name": "112211", "slug": "...
1
vote
1answer
704 views

How to display on the blog page the posts corresponding to the selected language, using Polylang

I use Polylang (free) to internationalize a customer site. I set a default language (= FR), I added a language switcher in my navbar (FR and US flags) and I set the Front and Blog pages for both ...
-2
votes
1answer
619 views

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

I use Plugin Polylang. I need to display one post into 3 categories (one category, but for any language the plugin polylang needs to create 3 different categories), it's important to make this without ...
0
votes
0answers
72 views

Polylang plugin translation problems

I am using polylang. I have certain input values that are stored in options table of my plugin. I have changed those value to Nepali language as well. You can see here: https://prnt.sc/ibqcfx I have ...
0
votes
0answers
128 views

Replace the slash after language code dash so a custom taxonomy slug and language code can be combined

I am using custom taxonomy to categories the locations so my current url is like this: http://example.com/en/usa The language code is added from polylang and i have did this with rewrite rule. Now ...
0
votes
0answers
491 views

Function get_locale always returns en_US in plugin?

I have the following problem developing a WordPress theme and I am here to ask you. While using get_locale() in one of the plugin, its always returns the same en_US . Even though the language set if ...
0
votes
0answers
351 views

Polylang non-default language ignores tags in WP_Query

I have a mutual DB of custom posts that I'd like different languages to be able to access. If I loop through the post type only, all posts show in all languages, but once I add a tag to the query it ...
1
vote
1answer
91 views

Remove Category slug from link

I'am using Polylang in my wordpress site, so I have too language en and fr. I set en as a default languge. And I create a category named organized-trips in en and voyages-organises in fr. But when I ...
1
vote
2answers
217 views

Replicating the WP_Query 's' param with $wpdb

Take this basic query: $posts = new WP_Query(array( 'post_type' => 'page' 's' => 'some search query' )); WordPress will split the some search query into 3 separate search terms, which ...
0
votes
0answers
519 views

(Polylang) Get id of a term in its translations

I have a foreach loop displaying all terms in a taxonomy. I need to exclude one particular and its polylang translations - but so far I have not managed to do so without manual listing them. Is there ...
0
votes
2answers
895 views

Using polylang, how can I see which post is the “original” and which are the “translated children”?

I am using Polylang. It is not obvious to me how the relationship between posts are established. I can switch between different language versions of the same post, and I can tell that they're (...
4
votes
2answers
390 views

create users to site with specific language

We've created a website that has 8 languages, Russian, Spanish or English to name a few. Each language has its own version of the website. I'm trying to create users that will be able to only modify ...
1
vote
1answer
1k views

Multisite - Parent site with Polylang with different domains for each language [closed]

A client wants a Wordpress multisite installation where they will have over 100 child sites. The child sites will either have its own domain or use the subdomain. This is all fine and good but now he'...
1
vote
1answer
282 views

How to link 2 categories (Sync)

I want that whenever a user post something in category "Foo", the same content must be duplicated to the category "Bar" automatically. Is there such a plugin that automate the process? Or some PHP ...
0
votes
1answer
358 views

2 different languages, 2 different domains: Not sure which choice to make

I am a WP newbie just trying to set up my own personal website. I live in a french area of Canada, so I need a french website, but my native language is english so I want an english website as well. I ...
0
votes
0answers
432 views

Polylang Flags menu doesn’t display on home page

I've have installed polylang plugin. Before to update the plugin, used to display all the flags languages perfectly on the flag menu located in my home page. Right now just display Canada flag instead ...
0
votes
2answers
614 views

How to manually link posts to each other in Wordpress

I have two language versions for each of my pages using Polylang plugin. There's a language switcher on every page. But somehow I created two posts not connected to each other (first two in the list). ...
0
votes
1answer
575 views

Polylang not translating Metabox fields [closed]

I'm using Polylang to make my website multilingual. but when I edit a custom metabox's field in a post, the same field in the post's other language also changes to that. So that it seems that the ...
0
votes
1answer
23 views

Internationalize Forum Posts Without Translating Them

I would like to internationalize my forum. I would like for users to be able to display the forum in 2 languages. The language will be determined by the url. I downloaded a plugin called Polylang to ...
2
votes
1answer
84 views

Wordpress multilingual site using page-id.php files

I'm building a Wordpress site which I hope to offer in three languages namely: English Spanish French In the past I've always built out my sites by creating the pages via the backend, recording the ...
0
votes
1answer
137 views

Static home page ignored

I am trying to show an static page instead of posts. It is defined accordingly in Settings-Reading, and it works fine. It uses a front-page template. But activating Polylang (since my web should be in ...
0
votes
0answers
141 views

Conditionally (cpt) filter previous and next_post_link

I'm using the next_post_link and previous_post_link functions in two different scenarios, first in my single-cpt.php and second in my single posts. The name of my cpt is "members". Note, that I'm ...
0
votes
2answers
3k views

polylang translation of a custom post created by wp_insert_post()

I am in trouble. I have a travel site...I have created a page where users can write a form to insert their houses. The houses are of course a custom post type. This is a piece of my code: ... some ...
0
votes
1answer
57 views

wp_nav_menu custom Page class

I am building a multilingual site with Polylang, and need to add custom class to my menus that groups together Pages about the same content. For example, I have a Page "Happy" and it has a translated ...
-2
votes
1answer
133 views

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

I set up a playground site PlaygroundSite and I am trying to put Polylang language changer widget in the same line as linked-in icon. Because ascent theme does not contain a widget/sidebar area there,...
0
votes
1answer
6k views

Get posts by language in Polylang plugin

I use the Polylang plugin to translate my website in Italian and German. How can I get the latest post in Italian? I'm using the arguments below to get the content of the post, which afterwards I ...
1
vote
1answer
2k views

Polylang get non-current language/s

I am using Poly language plugin to build my own custom multi language website Previously i was using Q_translate it's working fine with me, but i need to use poly language now, so excuse me if there ...
-1
votes
2answers
6k views

Language switcher with flags - Polylang WP plugin

I have installed Polylang WP plugin for one site.. and need to add flags but its look like there is no option or any tutorial how to do this.. If anybody have some solution for this will be great..
0
votes
1answer
231 views

Polylang and United Arab Emirates languange

I use Polylang Wordpress plugin and need to add United Arab Emirates language to site.. in drop down there is no options to chose corresponding language ( United Arab Emirates ) to Arabic.. but here ...
5
votes
1answer
6k views

How to show all available images in WP's media library when using the Polylang plugin?

It seems that depending on which default language I've set Polylang to, all my uploaded images are isolated so that I can only pick them when I'm editing posts in the default language. I have a lot ...
1
vote
0answers
491 views

polylang + category/tag custom language link

under wordpress user can define url part for categories/tags, e.g., page.com/category/some-cat where category is user defined string part. Is there a way to define "category" (same goes for tags) for ...
0
votes
1answer
872 views

How to Customize Polylang Language Items

I am using Polylang plugin with WordPress 4.3.1, Can you please let me know if there is a way to display language items in short abbriviation like En for English or CH for Chinese I am using this ...
0
votes
1answer
577 views

Multisite custom rewrite urls

On a multisite installation, which is running the Polylang plugin, I want to add a custom rewrite rule. Currently, my permalink structure is: http://host.com/sitename/language/pagename Now I want ...
0
votes
1answer
318 views

why custom post archive gives always no more than 10 posts despite of paging settings?

I've got a strange problem. I'm programming a custom post archive page. I'm using wp conventions, so I've got a 'project' custom post type and an archive-project.php page, which is correctly showing ...
1
vote
1answer
7k views

WP_Query and polylang issue

In the theme I develop, I have a template showing 5 posts using the standard loop: <?php $my_query = new WP_Query('showposts=5'); while ($my_query->have_posts()) ...