WordPress.org

Forums

Related External Links Plugin & Compatibility with Bilingual Websites (4 posts)

  1. bluebird2
    Member
    Posted 6 years ago #

    To make "Related External Links Plugin" work with Bilingual Websites the developer needs to replace the 'two' occurrences of around lines 241 and 248 in related_external_links.php

    $desc = get_post_meta($post_id, "related_exlink_$i"."_desc", true);

    with

    $desc = __(get_post_meta($post_id, "related_exlink_$i"."_desc", true));

    This does not affect the functionality of the plugin for regular websites but makes the bilingual sites able to use the plugin.

    http://wordpress.org/extend/plugins/related-external-links/

  2. Konstantin Kovshenin
    Member
    Posted 6 years ago #

    Bluebird2, thank you so much! The fix is coming up in the next update.

  3. Konstantin Kovshenin
    Member
    Posted 6 years ago #

    Tho I couldn't find those lines, since version 1.0.1 (current latest) is only 193 lines long :D guess you're using a prior version. Anyways, stay tuned for the fix.

  4. bluebird2
    Member
    Posted 6 years ago #

    Thanks for the fix. I changed those lines in my old version of the plugin and everything worked fine.

    After the latest upgrade (1.0.2) everything worked fine, until I noticed that after updating my posts the external links only show the English version not the Persian. So I checked the posts again and noticed that after updating the posts text like this:
    [:en]XXXXXXXXX[:fa]YYYYYYYYYY
    changes to:
    XXXXXXXXX
    so all the short codes for bilingual functionality disappear, plus the text in the second language. I didn't have this problem in the previous version (with my own fix) so I guess something is changed in the way the "Anchor" section in the "Related External Links" plugin works in the new version.

    Would you please check the plugin to see if that can be fixed?

Topic Closed

This topic has been closed to new replies.

About this Topic