Ajax call with Polylang
-
Hey Guys,
I have polylang with the Job Manager and listings in two different languages.
Now, when I use the widgets the AJAX request falls back to the default language, resulting in no listings shown in the second language.
To fix I made a small change in includes/class-wp-job-manager-ajax.php, Lines > 81:public function get_listings() { global $wp_post_types,$polylang; $polylang->curlang = $polylang->model->get_language($_COOKIE["pll_language"]);
But since this won’t survive a plugin update I was wondering if there is a way to support this with a setting I’ve missed in PolyLang or the Job Manager or a change in the plugin.
Cheers,
Korneel
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Ajax call with Polylang’ is closed to new replies.