Follow

Using qTranslate for Multilingual Site

qTranslate makes creation of multilingual content as easy as working with a single language. qTranslate supports infinite languages, which can be easily added/modified/deleted via the comfortable Configuration Page.

Problem

qTranslate does not support custom post types. If you are using qTranslate for a multi-lingual site, and are having issues with the custom post type links always re-directing to your default language posts. As it appears qTranslate in its current iteration doesn’t support custom post types. And the_permalink or get_permalink will not change to current lang as you switch them.

Solution

Solution was very simple. Just include this in your theme’s functions.php file.

1

add_filter( 'post_type_link', 'qtrans_convertURL' );

view rawfunctions.php hosted with ❤ by GitHub

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

Powered by Zendesk