WordPress.org

Ready to get started?Download WordPress

Forums

Related Posts by Category (1 post)

  1. mpjltd
    Member
    Posted 1 year ago #

    Problem :
    If you using both the "related posts by category" and "qtranslate" plugin, it shows the related posts thumbnails and also shows the title of the post, but it shows all the titles from every language.

    Solution:

    Add the following coder after line 60:

    if (function_exists('qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage')) {
    $post->post_title = esc_html(qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage($post->post_title));
    }

    Save it.
    Done

Topic Closed

This topic has been closed to new replies.

About this Topic