问题
I'm trying to obtain the correct content for each language (I'm using qtranslate plugin in Wordpress environment) loaded by Ajax calls.
Every time, contents are shown up only in the default language.
I'm thinking about to pass the default-language-qtranslate variable into the ajax calls but I don't know how.
Maybe someone out here has already solved this issue..?
Thanks guys
回答1:
This will help you to fix the default language request in Mailpress, or any other plugin.
Search in code for link request "ajax.php". Replace "ajax.php" with ajax.php/?lang='.qtrans_getLanguage()
来源:https://stackoverflow.com/questions/7571643/qtranslate-plugin-and-ajax-requests