-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ACF Pro 6.0 #1227
Comments
Here's a quick fix for front-end, add this function to your functions.php file:
|
Thanks @Komarovski |
Version 6 is currently not supported, so I would recommend not using it just yet. If you still want to use ACF(-PRO) 6+, you must first allow this in the acf_qtranslate_plugin class: init() |
All of this is obsolete with qTranslate-XT 3.12.1 released Sept 4. The |
@salt-istanbul @Komarovski @MKRD-SUPPORT Which qTranslate-XT version are you using? I can't reproduce the problem with ACF 6.0.3 Free.
I'm not the original author, but I guess the main reason was because the rendering of translated fields is specific to the current language. Perhaps that could be handled differently with hooks instead of registering new fields? |
In fact there's an option in the qTranslate / ACF tab called "Enable translation for Standard Field Types". If you tick that, it will enable the ML support for ACF fields: text, textarea, wysiwyg - though there's a known problem with wysiwyg reported in #1186. I don't know yet why it's only for those fields, perhaps it could be extended. |
In the production environment I will not update to the current state of the plugin: ACF(-Pro) 5.12.3, QTX 3.11.0 I'm sorry, but I don't have time to deal with the plugin in the near future. |
To me there's no major problem with ACF6, it works but you need QTX 3.12.1 or later. |
Just in case, if you want a quicker and simpler fix on an older version of QT-XT just change these lines: qtranslate-xt/modules/acf/src/plugin.php Line 35 in fbe2765
qtranslate-xt/modules/acf/src/plugin.php Line 50 in fbe2765
Replace the check
with
That should do the job to keep most of the QT-XT module for ACF working without adding any code. You can even remove the version checks completely for temporary tests. I realized it was artificially limited so I changed that in 3.12.1 along with a lot of code refactoring. The rest should not impact the existing functionalities at all. |
Hi,
qtranslate-xt / acf integration not working with ACF Pro 6.0.
The text was updated successfully, but these errors were encountered: