Home › Forums › ACF PRO › Multisite Main Site Options Page Filter Child Site › Reply To: Multisite Main Site Options Page Filter Child Site
You need to set the number argument for get sites, unfortunately, it does not seem to be a way to set it to all by using -1 like in WP_Query(), instead it seems that you need to set it to a number that is higher than the number of the sites you have.
The reason it’s returning 99 is that the max is 100 and we’re eliminating site 1 (the main site)
$sites = get_sites(array('number' => 500));
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.