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
Thank you, how do I access that .php file? Through FTP?
I found it, I added it to the very last of the .php. I tested the code and it didn’t rearrange. Any suggestions?
Are you sure that this is in dropdown-multisite-selector.php file?
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?
Im currently editing through “edit plugins” in WP.
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?
Yea here is a screenshot.
http://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!
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.