WordPress.org

Ready to get started?Download WordPress

Forums

Related Posts Thumbnails
[resolved] qTranslate and "Related Posts Thumbnails" (3 posts)

  1. bluebird2
    Member
    Posted 2 years ago #

    I use qTranslate on my multi-lingual website. Despite the fact that "Related Posts Thumbnails" is a localized plugin it seems it does not work on multi-lingual website. Would you add that ability to the plugin?
    Here is more information about what needs to be done:
    Making Plugins work with qTranslate

    Also, it would be great to have a thumbnail size option in the plugin's setting page.

    http://wordpress.org/extend/plugins/related-posts-thumbnails/

  2. Jordy Meow
    Member
    Posted 2 years ago #

    You will have to edit the plugin yourself. Look for the line that begins with "$title = $this->process_text_cut". This line and the next 2 lines will have to be replace with:

    $title = $this->process_text_cut( __($post->post_title), $text_length );
    $post_excerpt = ( empty( $post->post_excerpt ) ) ? __($post->post_content) : __($post->post_excerpt);
    $excerpt = $this->process_text_cut( __($post_excerpt), $excerpt_length );

    And it should work much better :)

  3. bluebird2
    Member
    Posted 2 years ago #

    Thanks. That worked.

    I hope the plugin owner makes this changes to the PHP file herself so the plugin can support the bilingual websites.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic