Support » Plugin: Multisite Language Switcher » [Plugin: Multisite Language Switcher] specific order

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Dennis Ploetner


    Yes, you can place some code in the functions.php of your theme like this.

    Thank you !

    I’m building my first multi lingual site….
    I don’t seem to be able to change the order of the flags. I used the code to change the blog collection, but I’m not quite there yet.
    Do I need to use a specific blog ID to replace the numbers ( 1, 2, ) – where do I find it?
    Please help! Thank you.

    Plugin Author Dennis Ploetner


    As network-admin in “Sites” you can just place your mouse over the links of the blogs and you can see the IDs.

    Trying to do the same, my blogs ID are 2 and 3

    So I added but my order stays the same what should I do

    function my_msls_blog_collection_get( $arr ) {
    $arr = array();
    foreach ( array( 3, 2, ) as $id ) {
    $arr[$id] = get_blog_details( $id );
    return $arr;
    add_filter( ‘msls_blog_collection_construct’, ‘my_msls_blog_collection_get’ );

    Plugin Author Dennis Ploetner


    There has changed something. For example there is a sort-method in the class MslsBlog so your function will just work on which blogs the plugin has to collect. At the moment you can sort by language-code or description but maybe you can explain what you want to do?

    I want to switch the order which my description shows on my website
    Right now it’s EN – FR and I want FR – EN

    Description is EN and FR since E is before F I want the reverse order


    I would like to display my flags in ascending order of IDs is it possible?

    I have DE FR PT US and I would like US(1) FR(2) DE(3) PT(4)

    Thanks for your help.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Plugin: Multisite Language Switcher] specific order’ is closed to new replies.