qtranslate plugin and ajax requests

為{幸葍}努か 提交于 2019-12-02 03:49:37

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!