Questions tagged [polylang]

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

217 questions
0
votes
1 answer

Polylang: How does the linking of right page by changing the attribute "href" work?

I have a question about linking the right page with Polylang. I have a hard-coded anchor, which is basically a “back home” link. It looks like this: I have already…
0
votes
1 answer

Wordpress Polylang Translation of “Read More” and “Submit” button

I'm using Polylang on my clients website. They now have a blog, but the read more and submit button (for adding comments) are not translated into German. Also the title of the comment section is: Schreibe einen Kommentar, but my clients wants to…
michelle88
  • 21
  • 1
  • 7
0
votes
1 answer

Wordpress Polylang Strings searchable?

i'm using Polylang with PODS and different custom post types. The Wordpress search is working fine for all of the content inside the posts but what about the strings i have to replace in the template? Are they not searchable at all? Is there any…
Maaaark
  • 139
  • 2
  • 12
0
votes
1 answer

PHP and Wordpress + Woocommerce

I'm currently running a shop with WooCommerce and I need my website to use 4 different languages. I used Polylang free plugin to translate my website. I'm using WooCommerce REST API to send items to the website and it is working just fine via .json…
0
votes
0 answers

Error after update PHP to 7.3 with reference to the code

After update to PHP version above 7.1, I've got an error: Warning: Use of undefined constant slug - assumed 'slug' (this will throw an Error in a future version of PHP) The indication applies to the code that I use to support languages on the…
Pat
  • 697
  • 3
  • 11
  • 30
0
votes
0 answers

How to point my subdomain in the htaccess file to the directory where the WordPress index.php is present?

I'm trying to set up multilingual WordPress site using the PolyLang plugin. My website will have 3 languages - Ukrainian, Russian and English. Ukrainian default. In the URL settings of polylang, there is an option to select a language by subdomain.…
Keradan
  • 21
  • 4
0
votes
2 answers

How to get specific values out of all indexes in an array

I have an array which I want to iterate over to push the items into a select box, but I can't figure out how to do it. The array I get from the function: array(2) { ["de"]=> array(10) { ["id"]=> int(10) ["order"]=> int(1) …
DutchPrince
  • 333
  • 2
  • 16
0
votes
3 answers

How to change polylang flag?

I need different flag for languages. It is possible to use your own images as flags. You have to use PNG or JPG files and name them with the WordPress locale. For example, en_GB.png. Then upload this file in the /wp-content/polylang/ directory…
mojito000
  • 55
  • 1
  • 5
0
votes
1 answer

Wordpress - WooCommerce Polylang Integration - Product only with one language

As the question, you can guess, I'm building my own theme for Woccommerce, the store is a multilingual store, and after carefully creating all the pages in two languages, I have to take care of the products, to do this, I use a plugin that is who…
0
votes
2 answers

How to echo a language's name using the 'raw' attribute?

I'd like to make a language switcher, but the default options don't work for me, so I'd like to use the 'raw' attribute. I'm currently just testing whether my languages will show up at all: $translations = pll_the_languages(array('raw'=>1)); echo…
TeunCB
  • 33
  • 5
0
votes
1 answer

Which accordion WordPress plugin supports Polylang?

I'm trying to build an FAQ page using accordion UI but all FAQ plugins I tried do not support Polylang. Does anyone know any accordion plugins that do support?
vyap56
  • 180
  • 8
0
votes
0 answers

Trying to add functionality to my WP theme for switching logos based on current language--

I am using the Polylang plugin for this. The theme is only bilingual, and I've managed to create a panel in the admin section for uploading the logos separately, registered to logo_sr and logo_es. I now want to add a variable to the options table…
bogdan
  • 667
  • 1
  • 8
  • 17
0
votes
1 answer

Polylang language slugs on URL corrupt scripts src

I am using Polylang free to create a multilingual Wordpress website. My scripts are being loaded like this: Which is true for the…
0
votes
1 answer

Wordpress - polylang in command launch post traduction

Today I need some help with Wordpress, as is is far from being my cup of tea. Currently, I'm tring to create a plugin to export translation from post in a xliff file then reimport this xliff file to set the translation. This plugin we only be used…
LinChan
  • 417
  • 1
  • 5
  • 17
0
votes
1 answer

How to display a template page with custom fields on other pages

So I'm a little stuck. I'm a total newbie in WordPress, and yet, I need to get something done. Here's the problem. I have a section with contacts on the site, that repeats itself several times on several pages. I made that page a template and added…