HOWTO lists all latest updated blog posts on the front page

I wanted to show the contents of the latest posts on the latest updated blogs on the front page, but didn’t find any plugin for WordPress MU which did just that.

So I wrote STREATCOWPMU - which stands for “Show The Recent Entries And Their Content On WordPress MU”. It’s partly based on a script made by Ron Rennick which isn’t available anywhere on the web for some reason and also doesn’t do the same thing, it just lists the titles of the latest blogs - and WPMU actually comes with a function to do that, so I don’t quite see why he’d write a plugin, but it did give a few pointers.

To see what it does, just look at the front page of Livelyblog.

To use it, just download this file:

streatcowpmu-022.zip

and put the php script in wp-content/mu-plugins/

Then add this to home.php:

<?php display_content_of_most_recent_posts_from_all_blogs(10) ?>

..and that’s it. The argument is simply the number of upgraded blogs to display.

Older versions (only minor changes, but anyway, it’s fun to view old code):

streatcowpmu-021.zip

Comments

Leave a response

Comments

*
To prove you're a person (not a spam script), type the security word shown in the picture.
Anti-Spam Image


howtomakeasitelike.livelyblog.comLogin