Showing All Media from All Multisites

After posting the question, I did a ton of googles, and eventually built a plugin that displays all media for all subsites in a multisite installation. If the user is SuperAdmin, each picture is linked to it’s editing page. The plugin is called ‘Multiside Media Display’, and available via the usual Add Plugins page in … Read more

How to Call Function From Separate WordPress Install on Same Server?

Your include path is incorrect. You have: require_once( dirname(__FILE__) . ‘../../../../global_functions.php’); When it should be: require_once( dirname(__FILE__) . ‘../../../../functions/global_functions.php’); The other alternative would be to change your setup from individual standalone installations of WordPress to WordPress Multi-site. You would then have a couple of options: Option #1 being a Must-Use Plugin. Option #2 being a … Read more

global categories – Share specific categories in wordpress multisite

Here is a solution I found- // even before any taxonmy/terms are initialized, we reset the tables add_action( ‘init’, ‘the_dramatist_change_tax_terms_table’, 0 ); // on blog switching, we need to reset it again, so it does not use current blog’s tax/terms only // it works both on switch/restore blog add_action( ‘switch_blog’, ‘the_dramatist_change_tax_terms_table’, 0 ); function the_dramatist_change_tax_terms_table(){ … Read more

How to hide blog by id wordpress multisite listing

How about an if statement? <?php $blogs = get_last_updated(‘ ‘, 0, 3); foreach ($blogs AS $blog) {; switch_to_blog($blog[“blog_id”]); $lastposts = get_posts(‘numberposts=1&orderby=date’); foreach($lastposts as $post) : setup_postdata($post); ?> <?php if $blog[“blog_id”] != 1 { ?> // Run the Output if the ID is not X <div class=”col-sm-4 blog-newest”> <!– blog name –> <h3><?php echo $blog_title = … Read more