WordPress.org

Forums

Polylang
[resolved] Language switcher sortorder of items (9 posts)

  1. Stefan Pasch
    Member
    Posted 1 year ago #

    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/

  2. Chouby
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  3. Stefan Pasch
    Member
    Posted 1 year ago #

    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.

  4. Chouby
    Member
    Plugin Author

    Posted 1 year ago #

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

  5. Stefan Pasch
    Member
    Posted 1 year ago #

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

  6. Chouby
    Member
    Plugin Author

    Posted 1 year ago #

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

  7. Stefan Pasch
    Member
    Posted 1 year ago #

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

    We're using MySQL 5.5.28.

  8. Chouby
    Member
    Plugin Author

    Posted 1 year ago #

    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"?

  9. Stefan Pasch
    Member
    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Polylang
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic