Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author alordiel

    (@alordiel)

    Helloo,

    As Ruth Maude has said in one of the previous topics, you can use the her code below and put it in the dropdown-multisite-selector.php file. And everything should be ok.

    add_filter('get_blogs_of_user','sort_my_sites');
    function sort_my_sites($blogs) {
            $f = create_function('$a,$b','return strcasecmp($a->blogname,$b->blogname);');
            uasort($blogs, $f);
            return $blogs;
    }

    Regards,
    al

    Thread Starter estarguars

    (@estarguars)

    Thank you, how do I access that .php file? Through FTP?

    Thread Starter estarguars

    (@estarguars)

    I found it, I added it to the very last of the .php. I tested the code and it didn’t rearrange. Any suggestions?

    Plugin Author alordiel

    (@alordiel)

    Are you sure that this is in dropdown-multisite-selector.php file?

    Thread Starter estarguars

    (@estarguars)

    yes but the file says “dropdown-multisite-selecto/dropdown-multisite-selector.php” is that the same one? Does it have to be done through FTP?

    Thread Starter estarguars

    (@estarguars)

    Im currently editing through “edit plugins” in WP.

    Plugin Author alordiel

    (@alordiel)

    Yes, it is the same file.
    And No, it is not required to be done through ftp.
    Are adding the code at the end of the file and once you save the changes and refresh the page could you see the code still there?

    Thread Starter estarguars

    (@estarguars)

    Yea here is a screenshot.

    https://s9.postimg.org/79expx3gf/Screen_Shot_2015_07_28_at_1_16_54_PM.png

    Once we have sorting this plugin will be perfect!

    Thank you for your help!

    Plugin Author alordiel

    (@alordiel)

    Hello,

    Sorry for not responding for so long.
    Your code seems ok, so the issue might be some were else.
    Currently I’m trying to deal with some issues with the WordPress repository to upload my new version where this option is available but don’t know when this will happen. But you can download the version from github.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Sort Option Names’ is closed to new replies.