• Resolved derpaschi

    (@hubersen)


    Hi

    is there any possibility to defined in which order the items of the language switcher are sorted? The backend list of languages and the language switcher items are not sorted the same way at the moment.

    Thanks for any help
    Cheers
    Stefan

    https://wordpress.org/plugins/polylang/

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

    (@chouby)

    I believe that you have an input field named “order” with the description “Position of the language in the language switcher” when you create (or edit) a language.

    Thread Starter derpaschi

    (@hubersen)

    You’re right. And in the backend view this field is used for ordering the languages, as it seems (http://cl.ly/image/0t2B1l2y150r). But using the language switcher item in a menu, the frontend view is sorted in another way (http://cl.ly/image/1P0m2V303Y3X).

    Thanks for your help so far.

    Plugin Author Chouby

    (@chouby)

    That’s strange. How did you create your language switcher?

    Thread Starter derpaschi

    (@hubersen)

    With the Language Switcher menu item (http://cl.ly/image/0K190G1T3s2r).

    Plugin Author Chouby

    (@chouby)

    Is the admin language filter menu (in top menu bar on admin side) in the right order? What’s your version of MySQL?

    Thread Starter derpaschi

    (@hubersen)

    No, that menu is not ordered correctly, too. -> http://cl.ly/image/1X1k3c200B47

    We’re using MySQL 5.5.28.

    Plugin Author Chouby

    (@chouby)

    Old versions of MySQL had some issue with sorting but I am testing with 5.5.27 so that’s probably not the right direction.

    Could you try to de-activate all your plugins and switch to a default theme, and then go to polylang settings and just click on “save changes”?

    Thread Starter derpaschi

    (@hubersen)

    Hey Chouby

    thanks for pointing in that direction. It’s in fact the plugin https://wordpress.org/plugins/taxonomy-terms-order/ that causes the wrong sorting of language items in the nav. There is a Auto Sort option, when switching that off, the lang nav looks fine.

    Thanks for your help.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Language switcher sortorder of items’ is closed to new replies.