Support » Plugin: Bilingual Linker » [Plugin: Bilingual Linker] Instructions?

Viewing 15 replies - 1 through 15 (of 17 total)
  • Plugin Author Yannick Lefebvre


    Did you look at the instructions on the plugin’s page?

    Where are you stumbling?

    Hi Yannick,

    All it says to do after installation is “Use the OutputBilingualLink function in the loop to display a link to the item translation.” Is the code provided complete, or does it require <php wrappers. And, which template would that go into and where? Obviously, I’m not a coder and need either detailed instructions or examples.

    Thank you,

    Plugin Author Yannick Lefebvre


    I guess you are not familiar with editing theme templates. The loop refers to the processing loop found in theme templates. To see the translation link, you need to edit one or more of your theme’s files to add a call to OutputBilingualLinker. Yes, it will need <php wrappers like any PHP call.

    Yeah, that’s my situation. I’m still learning where to put what in which template. I have edited one of the pages to link to it’s English version. This being said, would I put it in my page.php, single.php, index.php or maybe someplace else? Will the tag look like this?:

    <?php OutputBilingualLink($post_id, $linktext, $beforelink, $afterlink); ?>

    Thanks for your time and help…

    I have a template called “loop-single.php”. In it I placed this code

    <?php OutputBilingualLink($post_id, $linktext, $beforelink, $afterlink); ?>

    in various places, but nothing happens. Is there anyone out there who has been able to make this work, and who has an example to share?

    Thanks much!

    Plugin Author Yannick Lefebvre


    The plugin will not display anything is there is no link associated with the article. Did you assign a link to the article that you are viewing?

    I have a friend, who better understands php, work on the code with me. This is what was tried:

    <?php if ( function_exists( 'OutputBilingualLink' ) :
    echo '<ul>';
    echo OutputBilingualLink('123', ' English version', '<li>', '</li>); echo OutputBilingualLink('124', ' Spanish version', '<li>', '</li>); echo '</ul>'; endif;?>
    		    <?php the_content(); ?>

    Where the “123” and “124” is where the post id is supposed to go (at least in her understanding). I think that’s a mistake. How does this look to you?

    Plugin Author Yannick Lefebvre


    Well, you should not be hard-coding the post id. It should come from the current post being process. If you’re in a loop, that parameter would be $post->ID.

    For the life of me, I can’t understand why you choose to be so cryptic about how to make your plugin code work. I’m not a php coder. Don’t you have a working example that you can share?

    One of the forum members supplied me with a working code. All is good now.

    I have the same problem as laptophobo.

    I have been trying for hours to learn where to put what to get the code to work. Is there a simple example of what goes into “the loop”? Where I can put it? For example, can it go into the header and then when it is called, it will be available on all sites?

    I have been reading great things about this plugin in my quest for an example of how to use it. It’s the only reason I am still trying… but at this point it seems that to use this plugin, I have to learn all of the code that went into creating it.

    Please help…

    Gnomecircle. If you email me at laptophobo[at] I’ll forward you what I’ve learned.

    Thanks laptophobo!

    I have got it working. Now I can proceed to actually creating the site. lol.

    I get about 3 request each month for the bilingual linker code. So, here’s the instructions that works on my end:

    Get plugin: This is done through the Bilingual Linker:
    • Activate this plugin with Network Activation.
    • The plugin will not show in sub site plugins. (There will be vague instructions along with a link to the author within Settings > bilingual linker. Note: you may have to delete the plugin, re-install it, and immediately click network activation.)
    • Add the following codes in the templates, such as header.php (one goes in the English, the other in the Spanish)

    (In the English template):

    <?php // Bilingual Linker for English template
    if ( function_exists( 'OutputBilingualLink' ) ) :
    echo '<ul>';
    echo OutputBilingualLink( $post->ID, 'version en espanol', '<li>', '</li>'); echo '</ul>'; endif;?>

    (In the Spanish template):

    <?php // Bilingual Linker for Spanish template
    if ( function_exists( 'OutputBilingualLink' ) ) :
    echo '<ul>';
    echo OutputBilingualLink( $post->ID, 'version in English', '<li>', '</li>'); echo '</ul>'; endif;?>

    • Create a post. Near the bottom of the page is the Bilingual Linker box. Place your alternate language link there.
    • View.

    Y-a-t-il quelqu’un qui parle français sur ce forum ?
    Je souhaiterai utiliser le plugin Bilingual Linker, et je cherche des informations ou un tutoriel pour le mettre en place. Malheureusement, l’anglais et moi font “2” !
    Par avance, je vous remercie de votre aide.

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘[Plugin: Bilingual Linker] Instructions?’ is closed to new replies.