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)
- Please remove all crap related to license activation checking HOT 8
- post-object field select2 'search' in wp-admin not returning results when on subsite of multisite HOT 1
- Changing field to not be required using `acf/prepare_field` fails validation HOT 2
- The save_post_terms array values assigned but not saved for bidirectional values
- Presence of fields on a post type breaks iframe editor, even when fields are positioned to the side HOT 1
- Multiple URLs and wrong canonical url with ACF custom post type and custom permalink HOT 1
- ACF Tab align left group display issue HOT 1
- The ACF API integration issue with attachments
- Only Preview mode is available in WP 6.5beta1 HOT 6
- potential infinite loop in acf_get_field_ancestors()
- Block fields now show in the right hand side panel HOT 1
- True/False field fold together and can't be changed/updated HOT 3
- 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
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.