WPMU Site-Wide Latest, With Gravatar

December 14th, 2007 | by Thomas Belknap |

Download Here

The WPMU Site-Wide Latest plugin provides two widgets for your site. The first, labeled “Newest Post,” creates an 80-word teaser of the single most recently published blog post on any public blog across the entire site. The second, called “Recent Posts,” creates a list of the most recently updated blogs with their most recent posts, one post per blog. Both plugins provide a vehicle for those using the standard Gravatar plugin to obtain and display the Gravatar of the post author in each case.

The teaser widget takes the post title as the title of the widget, whereas the listing widget allows you to set your own title. Both allow you to ignore blogs, if you wish. The list widget also allows you to specify how many blogs you want to display and an offset. This is in case you use both together, that way the most recent comment is in the “Newest Post” widget and the next most recent begins the list in the “Recent Posts” widget.

The plugin also uses the WP-Cache, and both widgets allow you to set a time-out.

WP-Functions Used in This Plugin:

switch_to_blog()
restore_blog()
wp_cache_set()
wp_cache_get()
get_permalink()

Installation:

Unzip, upload (to either /mu-plugins or /plugins, your preference), activate and configure. Simple as that!

Tags: , ,
  1. 4 Responses to “WPMU Site-Wide Latest, With Gravatar”

  2. By rud on Feb 13, 2008 | Reply

    Is there a download link somewhere for this plugin ?

    Best regards.

    Rud.

  3. By indojepang on Aug 4, 2008 | Reply

    hi thomas! is it possible to use this plugin without widget? just asking.. don’t answer this if u feel it’s a dumb question.. :P

  4. By Thomas Belknap on Aug 4, 2008 | Reply

    Yes, actually, you can. If you look at the code, you will see you can call the following directly:

    hn_latest_posts($throttle)

    That will return an array with the latest posts from each blog on your network.

  5. By iyiadam on Nov 11, 2008 | Reply

    Thanks for the great tips.

Post a Comment