WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Category Posts Widget] Category Posts does not Support Bilingual Sites (3 posts)

  1. bluebird2
    Member
    Posted 5 years ago #

    Category Posts is a great widget but does not Support Bilingual Sites. It can be fixed easily with a little bit of change in the codes that does not affect its functionality on the regular websites. More information can be found here:
    http://www.qianqin.de/qtranslate/forum/viewtopic.php?f=3&t=294

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

  2. real_sanchez
    Member
    Posted 5 years ago #

    Hello bluebird2,
    Open the cat-posts.php in the plugin directory.
    search following code line: (line 40)

    // Get array of post info.
    $cat_posts = get_posts('numberposts='.$num.'&category='.$cat_id);

    insert after codeline 40 following code: if(function_exists('qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage')) $cat_posts = qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage($cat_posts);

    greetz
    real_sanchez

  3. bildworter
    Member
    Posted 4 years ago #

    wow. Great! Many thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic