[Plugin: qTranslate extension] Translation with Advanced Custom Fields
-
I have found a problem when trying to get this to work with Advanced Custom Fields, both the 2.* and 3.* versions.
The problem is that qTranslate extension doesn’t escape things correctly so when it tries to find stuff with rel=[] it bugs out on the id’s from Advanced Custom Fields that uses [].
I used a function like this:
function jq(myid) { return myid.replace(/(\[|\]|:|\.)/g,'\\$1'); }
added to qtranslate-extended.php and then changed some “e.attr(‘id’)” to “jq(e.attr(‘id’))” on lines about 149 and on to make it recognize them and work as intended.
So far i managed to get it to show and to work with languages but not to save, as i think it doesn’t update the correct fields and field ID’s to enable wordpress to save them the right way.
I’ll keep working on it and see if i can figure out the last parts but f anybody else manages to get this to work 100% i would greatly appreciate it.
Hope my work so far helps somebody else out and thanks in advance
https://www.ads-software.com/extend/plugins/qtranslate-extended/
- The topic ‘[Plugin: qTranslate extension] Translation with Advanced Custom Fields’ is closed to new replies.