jobs shortcode does not display job titles in chosen language qTranslate-X
-
The [jobs] shortcode, which outputs a list of the job names, does not output the correct language for the job titles (using qTranslate-X plugin).
I know wp job manager works with WPML, but I would love to get it to work with qTranslateX as well. This is what happens:
In default laguage (Dutch) the job titles and all other strings in the list are in the correct language.
When I switch to English, everything lists in English well, BUT the individual job titles are still in Dutch. Plus, the titles link to a wrong permalink (it puts ‘en/job/’ in front of title instead of ‘en/vacature/’ <- ‘vacature’ is dutch for job )The latter I might be able to solve/find out myself, but I guess what is most important for now is the jobs being shown in the correct language.
qtranslate-X checks for these kinds of codes in strings [:en]english text[:nl]dutch text[:] or
<!–:en–>English Text<!–:–><!–:nl–>Dutch text<!–:–>Maybe these are stripped from the job titles on output of the [jobs] shortcode?
From WP Job Manager support i got this reply on the question: ‘
Hi
This may be related to the ajax request – it may not know the language the request should be made in,For WPML we added this:
https://github.com/mikejolley/WP-Job-Manager/blob/master/wp-job-manager.php#L114QTranslate may need something similar, but I’m not familiar with the plugin so I cannot say if they have their own version of this.
So far I have had no luck, does anyone know a solution to this? That would be much appreciated. Thanks in advance.
Menno
- The topic ‘jobs shortcode does not display job titles in chosen language qTranslate-X’ is closed to new replies.