[resolved] Language Switcher doesn't work perfectly (2 posts)

  1. DJ_Drehbank
    Posted 1 year ago #


    thank you for this great Plugin.
    I've got the following problem:

    The site I'm working on has three languages: DE, EN, RU, but the language switcher only shows two links, it misses the one to current language (OK, this isn't super-nescessary, but my customer likes to see all three of them).
    I tried the method described on your blog (http://make.marketpress.com/multilingualpress/2014/04/create-a-custom-language-switcher/).

    You can see it here on the german version:
    It only shows the RU and EN links.
    Do I have to put my german blog into a sub-directory?
    I would appreciate your help or a hint.

    Thanks in Advance



  2. toscho
    WCEU 2016 Contributor
    Plugin Author

    Posted 1 year ago #

    To change that code, you can insert a new line right before the return statement:

    $items[] = sprintf(
    	'<a href="">%s</a>',
    	get_blog_language( get_current_blog_id(), FALSE )

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • MultilingualPress
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic