Hi,
I have a problem using Page Builder with Polylang plugin. I’m using 2 languages on website – Polish and English. Whenever I’m trying to use simple text or image widgets and set them to be displayed only in Polish or English site i have them displayed in both.
I already found exactly the same issue in this thread -> https://wordpress.org/support/topic/polylang-multilingual-plugin-incompatibility but solutions that are describe there simply dont work with my site. Synchronization for custom fields was turned off by default in Polylang settings, and adding this code to functions.php also doesn’t change anything:
/** * Filter the meta values that are synced between translated posts * * @since 18 Oct 2013 * @version 1.0 * @param $metas an array of post metas * @param $sync false when copying metas to a new translation, true when synchronizing translations * @return Filtered array of post metas */ function filter_copied_post_metas($metas, $sync) { if ($sync) { if(($key = array_search('panels_data', $metas)) !== false) { unset($metas[$key]); } } return $metas; } add_filter('pll_the_languages', 'filter_the_languages', 10, 2);
This thread is 2 years old, so I suppose that it doesn’t work with new versions of WordPress, Page Builder or Polylang. What I have is:
WordPress: 4.5.3
Page Builder: 2.4.10
Polylang: 1.9.3
Theme: Passionate 1.2.7
Could you please help?