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

    (@jackdewey)

    It does not have any shortcodes at this time, although it would be fairly easy to add some.

    That being said, I did not create any shortcodes for Bilingual Linker since I did not think that it would be useful for someone to have to remember to insert shortcodes in the body of every page or post that needs to be translated. It is much easier to place the code for the plugin in your theme template to handle translation.

    Did you have a specific reason to look for a shortcode?

    Thread Starter marco-raaphorst

    (@marco-raaphorst)

    Some themes use Hooks, like the Woothemes Canvas theme. In Hooks you can use HTML or shortcodes but never PHP. So shortcodes would be very useful here.

    For me Bilingual Linker might be useful since I have both an English and Dutch blog. I don’t want to translate every page only now and then. But I want to revert to them in a better way that inserting a link in the blogpost because I also want to have hreflang tag added to the header’s file. I presume you’re using that?

    Plugin Author Yannick Lefebvre

    (@jackdewey)

    I see. I just added a shortcode to Bilingual Linker. It is called:

    [the-bilingual-link]

    It’s options as just like the the_bilingual_link function:

    language_id, post_id, link_text, before_link, after_link, default_url, href_lang_code

    Although in mist cases, you won’t need to provide any of these parameters if you configured everything in the Bilingual Linker configuration window.

    I was not using the hreflang tag before, but just added support for this as well. I hope this works for you.

    Thread Starter marco-raaphorst

    (@marco-raaphorst)

    will this be in the next update? version 2.03? sounds good to me. thanks!

    Plugin Author Yannick Lefebvre

    (@jackdewey)

    It’s actually already out. I just forgot to bump up the version number. It has been changed now.

    Thread Starter marco-raaphorst

    (@marco-raaphorst)

    ok, I will check it.

    Thread Starter marco-raaphorst

    (@marco-raaphorst)

    I need more time to find out how to integrate it better. it appear on all posts. most of them are not translated. I only want it to appear when there’s a refering link in the post. maybe simply linking to the translation in the post is better.

    Plugin Author Yannick Lefebvre

    (@jackdewey)

    I see. I can add an option so that it does not display if there is no corresponding link. Stand by πŸ™‚

    Plugin Author Yannick Lefebvre

    (@jackdewey)

    Please upgrade to version 2.0.4 and check the new option ‘Hide if no translation available’

    Thread Starter marco-raaphorst

    (@marco-raaphorst)

    It seems to show up on the homepage. Need to take it off now.

    Plugin Author Yannick Lefebvre

    (@jackdewey)

    I see. You don’t want it showing up on any page other than articles than have a specific translation link. I can add more options to be able to suppress output on front page, archives and other elements.

    Will have that out tomorrow morning.

    Plugin Author Yannick Lefebvre

    (@jackdewey)

    Just released 2.0.5 to add options to fully control where the translation link will appear.

    Thread Starter marco-raaphorst

    (@marco-raaphorst)

    thanks. seems to be a bug. I put a checkmark on all “Hide on …” entries but it will show up for example under search http://melodiefabriek.com/?s=propellerhead&submit=Search

    Plugin Author Yannick Lefebvre

    (@jackdewey)

    Sorry about that. Pushed out the version without testing it enough. 2.0.6 should do the trick.

    Thread Starter marco-raaphorst

    (@marco-raaphorst)

    superb!

Viewing 15 replies - 1 through 15 (of 22 total)

The topic ‘no shortcodes?’ is closed to new replies.