WordPress.org

Ready to get started?Download WordPress

Forums

Related Posts by Category
Related posts showing all titles from qtranslate : Reloaded (2 posts)

  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

    http://wordpress.org/extend/plugins/related-posts-by-category/

  2. joomlamedia
    Member
    Posted 1 year ago #

    in which file?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic