i run Polylang with ACF PRO and ran into the following issue:
i have a custom post type (problem also appears on pages & posts) where i display a few ACF custom fields. They appear in my main language, but after i create that post in another language, the custom fields don’t show up.
Custom fields sync is off. I know thit was working before but i don’t know if the latest ACF or Polylang update caused the issue.
Best,
David
https://www.ads-software.com/plugins/polylang/
]]>However I’m having a small issue when I try to sync to custom post type. This is the situation:
I’ve got a custom post type called ‘game’. I’ve used advanced custom fields to specify a form for this post type. In this form I’ve got some fields that I want to be shared between the translations of post. What I mean by this is that when I go to the en version of a post and try to change the field, let’s say, year, I would like to sync it with the other translations.
Currently the only change I’ve made to the normal setup is to add in the functions file this:
add_filter( 'pll_copy_post_metas', 'copy_post_metas', 25, 2 );
function copy_post_metas( $metas ) {
return array_merge( $metas, array( 'year') );
}
Am I missing something? Thanks in advance
https://www.ads-software.com/plugins/polylang/
]]>I’ve installed Polylang on my website but for some reson it’s translating ACF, How can i Disable it,
I want to use my Custom Fields for all language and don’t want to translate it for each language.
Please Help
Thank You
Guy Amilani
https://www.ads-software.com/plugins/polylang/
]]>I would like to dynamicaly affect custom fields to each translated post of a current post. The idea is to set an array of every pages in french and to affect the location of the custom fields with every translations id.
How can I get the translations id in my must-use plugin OR in functions.php ?
Polylang functions seems to be declared (if( function_exists… is good) but return anything…
This does’nt work :
global $idLangs;
$myFrenchId = '1696';
global $polylang;
if(isset($polylang)){
foreach ($polylang->get_languages_list() as $term){
$idLangs = pll_get_post($myFrenchId, $term->slug);
}
}
print_r($idLangs);
Thanks for any answer, any idea… ^^
https://www.ads-software.com/plugins/polylang/
]]>Screenshot :
PolyLang is OK
PolyLang Not Work
https://www.ads-software.com/plugins/polylang/
]]>I can access this field, with this function:
get_field('gallery');
from a page with default language no problem, but wasn’t able to do it on the translated page – it returns an empty array.
The strange part is that I can’t get gallery field from a translated page even if I use the id of the page with default language, like so:
get_field('gallery', $page_id);
Even more strange – I created a gallery field in ACF ‘Option page’, and have no problem to access it from page with default language, using this:
get_field('gallery', 'options');
But on the translated page this function still returns an empty array.
I must say there is no problem to access any other ACF field from translated page, but only gallery field.
Why is that gallery field have this issue, but not any other type of ACF fields?
]]>I’m having an issue with polylang and ACF plugins. The custom fields contents don’t get translated by default. Any idea of a good solution in order to get them working perfectly? I’m thinking on duplicating the custom fields for each language, would it be a good solution? Though I’m also using the lingotek translation plugin to get post translated automatically and it only translates content from the main text editor so would you know something that could help me?
Thanks in advance.
https://www.ads-software.com/plugins/polylang/
]]>I love the taxonomy field type in ACF and the fact to be able to add terms dynamicaly. So I have created some custom taxonomies with CPT UI and some terms in both English and French.
I have a ACF field group for English and one for French with a rule to load them according to selected language.
But when I try to edit a custom post for English for instance, the Taxonomy fields load both English and French terms melted. Its the same with hierarchical taxonomies.
Is it an issue or do I use Polylang incorectly?
My settings>
ACF 5.3.2.1
Polylang 1.7.11
With or without Polylang Fix Relationships 0.0.2
Permalinks
– numeric
– The language is set from the directory name in pretty permalinks
– Remove /language/ in pretty permalinks
Polylang settings
– Custom post types > checked
– Custom taxonomies > checked
– Synchronization > all unchecked
No front page
https://www.ads-software.com/plugins/polylang/
]]>https://www.ads-software.com/plugins/polylang/
]]>My permalinks settings: post name
Using a static front page: YES
Polylang settings: Polish (pl), English (en)
I have latest versions of Polylang and ACF4 installed.
Simply when I save post in one language (a custom post type), in the other language all taxonomy fields are emptied.
Does anybody experience this?
Chris
https://www.ads-software.com/plugins/polylang/
]]>