• Resolved kmasi

    (@kmasi)


    I’m building a website in four languages and I’m using qTranslate-XT to do that. The problem is that when I include a related post list the plugin don’t work with the languages tag and display like [:en]Post Title on English[:].

    What should I do to get it work?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Ajay

    (@ajay)

    I’m not familiar with qTranslate. How does it pick the post in the language? A solution would be to filter the posts in crp_object_id_cur_lang to replace the ID of the post with the correct language one.

    The plugin includes language checks for WPML and PolyLang – https://github.com/WebberZone/contextual-related-posts/blob/v2.8.0/includes/i10n.php#L31

    Thread Starter kmasi

    (@kmasi)

    Hi Ajay.
    qTranslate use tags to separate languages. The post title will be [:pt]Portuguese Title[:en]English Title[:es]Spanish title[:]. So the plugin identify this tags and keep visible just the respective language.
    What I need is that when CRP output the tile for example, the plugin recognize what languages is and show only the right text.

    qTranslate team provide an integration guide but I can’t make it work :/

    https://qtranslatexteam.wordpress.com/integration/

    Plugin Author Ajay

    (@ajay)

    What do you see currently? Is it all languages?

    I see on the integration page it mentions something about custom filters. the crp_title filter can be used to filter the title and I’m not sure if you can add this somewhere in the configuration page of qTranslate

    Thread Starter kmasi

    (@kmasi)

    I see all languages side by side but the custom filter works fine for me.
    qTranslate offer a custom filter field on backend and it’s just add crp_title to get it work.
    Thanks for your help =D

    Plugin Author Ajay

    (@ajay)

    Thanks for confirming.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘qTranslate compatibility’ is closed to new replies.