Home › Forums › ACF PRO › Values are not always saved, WPML › Reply To: Values are not always saved, WPML
Looked into this a bit more now, and it appears that the ACF PRO action
forms/post.php is never called in the current state of my website here.
Edit: Seems to be different, still testing…
Edit 2: Seems to be problem around
suppress_filter=false and WPML active, trying to get a field in
_acf_get_field_by_key() does not return data.
If I change _acf_get_field_by_key() to suppress_filter=true, it looks like the correct post is returned by get_posts() but it actually is the opposite language, so a query with acf_field_key=field_1 returns a post with post_name=field_2, weird.
Example log with
acf/api/api-field.php/acf_get_field $selector=field_53c599718b60c $k=key $v=field_53c599718b60c
$field[ID]=4032 (wrong language) $field[label]=Adresse (wrong language) $field[key]=field_53c5986bcd16e
Note the not matching key.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
Are you building WordPress sites with ACF and @BeaverBuilder, and wanted to use your ACF Blocks in both the block editor and Beaver Builder?— Advanced Custom Fields (@wp_acf) May 10, 2023
The BB team recently added support for using ACF Blocks in Beaver Builder. Check it out 👇https://t.co/UalEIa5aQi
© 2023 Advanced Custom Fields.