Comments (6)
Hi @joeuttaro
I've had some luck debugging this issue and believe I have found a solution :)
It would be great if you could help test this out.
Please edit the file 'ACFPRO/includes/wpml.php' and change the function verify_ajax() on line 433 to:
function verify_ajax() {
// set the language for this AJAX request
// this will allow get_posts to work as expected (load posts from the correct language)
if( isset($_REQUEST['lang']) ) {
global $sitepress;
$sitepress->switch_lang( $_REQUEST['lang'] );
//$sitepress->set_default_language($_REQUEST['lang']);
}
}
This should solve the issue. Please let me know if you notice any other issues with WPML afterwards such as incorrect posts/terms/users loaded in AJAX powered fields.
from acf.
It's working now. Thank you!
from acf.
Hi @luismsf-va
Thanks for the bug report.
Version 5.7.3 does include some changes to our "acf.screen" logic which handles the "Refresh Metaboxes" functionality. It's very possible that we have a conflict with WPML translated taxonomies.
Can you please provide us with a simple set of instructions to replicate the issue as precisely as possible?
from acf.
@elliotcondon I also noticed a similar issue conflict with ACF 5.7.3 and WPML in which when a different template is selected (under Page Attributes), the ACFs are not refreshed, but rather are removed from the screen.
Sounds like it would likely be with the 'refresh metaboxes' functionality. I did a few hours of testing on this one- disabling WPML fixes the issue, as does downgrading to 5.7.2. Let me know if there's any more detail I can provide.
from acf.
@elliotcondon Just gave this a test, and it seems to have done the trick! Nice work š
from acf.
Thanks for the reply. I'm glad to hear this has solved the problem. I'll do some more testing here and release an update soon.
from acf.
Related Issues (20)
- When returning false in acf/load_field or acf/prepare_field multiple warnings occur HOT 1
- ACF post preview and revisions completely broken HOT 8
- WYSIWYG 'visual' tab in sidebar breaks when switching sidebar tabs HOT 1
- WYSIWYG Editor Field: Image element with width and height attributes triggers unsafe HTML error message HOT 4
- filter wysiwyg_tinymce_settings breaking HOT 1
- Front-end form submits itself when closing the wordpress link-edit dialogue
- Nested cloned repeater only works for 1 level
- Gallery - edit image breaks field in block sidebar HOT 1
- ACF 6.3.0 update breaks "No fields assigned" filter with empty string HOT 3
- Can't add ACF licence key HOT 1
- update_field() not working as expected in this scenario HOT 3
- Installing through composer installs incorrect version HOT 5
- Uncaught TypeError: Cannot access offset of type string on string - flexible content HOT 4
- Fix jQuery deprecations HOT 1
- User field stopped showing in GraphQL query
- Group: image subfield nĀ°10 not working HOT 1
- PLEASE ADD A DISCLAIMER THAT SHORTCODES HAVE TO BE ENABLED NOW HOT 1
- Repeater field type with pagination HOT 1
- Conditional logic in the Advanced Field Settings broke when a wrapper was added v6.2.9.
- Ampersands in Text Area fields produce warnings HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ššš
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ā¤ļø Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from acf.