List recent 25 blogs across the network

You just have to modify your query to get only first 25 matches SELECT * FROM $wpdb->blogs WHERE spam = ‘0’ AND deleted = ‘0’ and archived = ‘0’ and public=”1″ limit 25. The result is already order by id what is incremented automatically, you don’t have anything to bother about there. Also please note, … Read more

Get post by term from custom taxonomy in another blog on the network?

I found a small hack to filter by taxonomy without create the taxonomy in the child theme. In the core exists the function “taxonomy_exists“: function taxonomy_exists( $taxonomy ) { global $wp_taxonomies; return isset( $wp_taxonomies[$taxonomy] ); } And is this function who hive “false” because the taxonomy don’t exists in your child theme. If this function … Read more

Where to set individual blog quotas?

Go to your site’s Network Admin page — usually something like example.com/wp-admin/network/. Go to Sites » All Sites. Mouse over the site that you need to edit and select Edit in the menu that appears. Now select the Settings tab. Scroll down to the bottom (or near the bottom, depending on whether you have plugins … Read more

Pull Custom /wp-admin/css for Non-Admin in Multisite

Something like the following should work: global $blog_id; if ($blog_id == 1) { wp_enqueue_style( ‘custom-style’, ‘/wp-content/css/new_styles.css’ ); } Basically it checks if the person is on blog_id 1 and then loads the respective CSS from the CSS folder (you would need to create this). This would go in your functions.php

is_main_site() Always Returns True

I am not calling it inside of a hook but just straight away as the first thing in a MU plugin. At that point all the info you are requesting won’t be available. That’s running before any hook and before WP is fully loaded. Use a hook like wp_loaded, admin_init, after_setup_theme … whatever serves your … Read more