Blog & Portfolio setup

You can set up your blog & portfolio with one WordPress installation only. Fist check this codex article: http://codex.wordpress.org/Creating_a_Static_Front_Page for portfolio it would be best if you’ll create Custom Post Type, then all you portfolio stuff will have permalinks like example.com/portfolio/some-great-project, but post permalinks would be the same – example.com/2011/07/14/hello-world/, maybe with some WP Rewrite … Read more

Multisite sites output on a single page

I did this for a while on my own Multisite network. Essentially, I had one site that was a central “hub” for all the others and pulled in content from the entire network. It’s not easy, but it can be done. One approach (the approach I used at the time) used a plugin to automatically … Read more

WordPress Multisite Completely FUBAR?

I think the problem may have been a plugin that grabbed other posts from another WordPress blog (that is on the same domain but not same WordPress instance) and inserted those posts into a site on the current multisite instance that is screwed up. For the record, the first trouble-shooting step should always be to … Read more

Fastest way to fetch posts across a multisite

yup it is fast, it would be even better for you to use the WP Transients API to cache your query for a short period. Basically: if($saved = get_site_transient(‘SOME_SORT_OF_ID’)){ echo $saved; } else { ob_start(); switch_to_blog(x); // x being the blog id your want to switch to // Do your quering and echoing here restore_current_blog(); … Read more

Efficient way to fetch all archived WPMS blogs

You can go directly to the database via $wpdb. <?php $wpdb->get_results( “SELECT * FROM $wpdb->blogs WHERE archived = 1” ); Or wrapped up in a function: <?php function wpse34731_get_archived_blogs() { global $wpdb; if( empty( $wpdb ) ) return; $blogs = $wpdb->get_results( “SELECT * FROM $wpdb->blogs WHERE archived = 1” ); return $blogs; }