[AJAX] Get results for current locale only?
-
Hello, thanks again for this great plugin. I am currently using it and trying to make it play it nice with the Bogo multilingual plugin. https://www.ads-software.com/plugins/bogo/
Bogo allows me to have my posts and pages in different locales, my problem is that right now when I use the AJAX filter, all posts from all locales get fetched and displayed.
I took a look at the uwpqsf-process-class.php file and saw the uwpqsf_ajax function. I’ve added the “lang” argument to the $args array, but I’ve done it in a static way. How can I set this argument dynamically so that only posts from my current language get displayed?
I appreciate any help!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘[AJAX] Get results for current locale only?’ is closed to new replies.