WordPress.org

Ready to get started?Download WordPress

Forums

Multisite Language Switcher
[resolved] alternative to dropdown menu in admin page (6 posts)

  1. jenciso
    Member
    Posted 1 year ago #

    Installing your plugin on a multisite/network wp with one page in English and one in Spanish, and for what I see this works flawless - we have pages, posts and custom taxonomies linked together.

    The only thing we are worried about is the dropdown menu in the admin page, used to link items together. When the sites will grow, this dropdown will be a nasty monstrosity to select from...

    Do we have any alternative to this dropdown menu? (like the way we select tags for example...?)
    Or can we at least order it by creation date? (this would bring the entry I just added in the other language to the top of the list)...

    Or any other idea how to manage this? Are we missing something?

    thank you for your time!
    /best
    /javier

    http://wordpress.org/extend/plugins/multisite-language-switcher/

  2. realloc
    Member
    Plugin Author

    Posted 1 year ago #

    I have no answer for this issue at the moment. It is already known but I had no time to work on solution for that: https://github.com/lloc/Multisite-Language-Switcher/issues/27

    Cheers,
    Dennis.

  3. jenciso
    Member
    Posted 1 year ago #

    Dennis, I knew you'
    either you misunderstood my question, or you meant to point to this comment instead:
    https://github.com/lloc/Multisite-Language-Switcher/issues/19

    But the issue https://github.com/lloc/Multisite-Language-Switcher/issues/27 also worries me... Is this a common scenario? How many are "lots" of articles?

    /best
    /j

  4. jenciso
    Member
    Posted 1 year ago #

    Dennis (seems like I have some typos in last post - sorry! ;-)
    I have patched my own solution for now.
    Posting here (don't know if this is a correct place, but I see you are very active here...):

    in MslsMetaBox.php

    edited lines 81-82:
    ` $my_query = new WP_Query(
    array(
    'post_type' => $type,
    'post_status' => 'any',
    /* 'orderby' => 'title',*/
    'orderby' => 'modified',
    /*'order' => 'ASC',*/
    'order' => 'DESC',
    'posts_per_page' => (-1),
    )
    );`

    Now I have the not-hierarchical posts showing by descending modified date order (that is: last edited on top)

    It would be nice if we could have some kind of checkbox or whatever to select orderby (title/date/modified) and order (asc/desc) in the metabox.

    Thank for your time
    /best
    /j

  5. realloc
    Member
    Plugin Author

    Posted 1 year ago #

    Yes, it looks like that these two issues are similar.

    I remember that I modified the code some time ago because a user asked for that. Yes, could be that a filter in combination with some kind of configuration is the right way.

    Cheers,
    Dennis.

  6. realloc
    Member
    Plugin Author

    Posted 1 year ago #

    You could test the next version which will be available soon: https://github.com/lloc/Multisite-Language-Switcher

    Instead of the dropdowns there are now input fields with autocomplete. This should resolve this problem.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic