Thanks Adrian. I’ll look into a way of making this configuration easy for our users.
Nice one!
Hi Adrian. I’m about to release an update which supports wordpress’ new WP_Site_Query() class.
https://developer.wordpress.org/reference/functions/get_sites/
I think this will solve your problem as the limit $args['number'] on the query is defaulted to null (no limit). After my update can you have a wee check and confirm for me?
Many thanks.
Mario
Yes, I can do that and report back!
@adrianb how did you manually change to have all sites viewable? I have over 200 sites too and i need them to all show.
I am stuck on an older version until I can make the newer version work with my current setup. Your wisdom is greatly appreciated.
@magicstick maybe you know how to do it too.
Thanks for your time and help
Hi ihackinjosh. If you have WordPress > 4.6 and are running the latest version of my plugin you will see all of your sites! 😉
@magicstick I had some custom work done for me and it does not work it i update the plugin unfortunately i am stuck on 0.9.3. Until i can figure out how to update the changes to work on the newest version. In the mean time is there a work around for me.
I’m on 4.7
-
This reply was modified 9 years, 3 months ago by
ihackinjosh.
That’s unfortunate! Can you send me your moded v0.9.3 and I’ll look into getting it working on the latest version?
that would be awesome @magicstick, how do you want me to sent it to you?
-
This reply was modified 9 years, 3 months ago by
ihackinjosh.
Link me up on my email mariojaconelli at gmail 🙂
@ihackinjosh If you just want to do a quick hack of the plugin you could try change line 635 of inc/mpd-functions.php from this:
$args = array('network_id' => null);
to something like this (in this case setting the limit to 250 sites):
$args = array('network_id' => null, 'limit' => 250);
This is untested, I don’t have my original change around, but I assume it was something like that.
@magicstick Sorry for not getting back, I said I was going to test the new version, but I still have not done that. (I only needed the change for a little while, and I’m not using the plugin actively at the moment.)
-
This reply was modified 9 years, 3 months ago by
AdrianB.
thanks for the suggestion @adrianb but sadly that did not fix the sites, it kept if the same. Thanks again for your help and time.
@adrianb any other suggestion while @magicstick works on solving my issues with the old version.
Sorry, no. If your issue is that you only get 100 sites, then there is only one place where wp_get_sites() is called AFAIK, so I don’t see any other way to change the limit but that $args array.