Giter VIP home page Giter VIP logo

Comments (6)

elliotcondon avatar elliotcondon commented on July 24, 2024 1

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.

luismsf-va avatar luismsf-va commented on July 24, 2024 1

It's working now. Thank you!

from acf.

elliotcondon avatar elliotcondon commented on July 24, 2024

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.

joeuttaro avatar joeuttaro commented on July 24, 2024

@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.

joeuttaro avatar joeuttaro commented on July 24, 2024

@elliotcondon Just gave this a test, and it seems to have done the trick! Nice work šŸ‘

from acf.

elliotcondon avatar elliotcondon commented on July 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.