The MU forums have moved to WordPress.org

wpmu-rss.php (Sitewide RSS feed) (9 posts)

  1. hery
    Member
    Posted 17 years ago #

    I think, like wp-rss.php etc. Such file can be added to wpmu features.

    I use this without any plugin for the fear that when it is added in the future, there would be a conflict. But if there is a function lik wpmu_get_all_posts in wpmu in the future then this file might be cleaner.

    If you don't have yet a sitewide RSS feed then you can use this.
    http://hery.blaogy.org/2007/02/23/wpmu-rss-feed/

    Any suggestions or corrections are welcome.

  2. lunabyte
    Member
    Posted 17 years ago #

    How would this proceed if site 325 had the latest 3 posts across the site?

    Are all 3 going to show up in the feed?

    I didn't look too deep into it, but it didn't appear it would.

    However, it's a lot less code than the other sitewide plugin, which isn't a bad thing at all.

  3. suleiman
    Member
    Posted 17 years ago #

    less code is more attractive.

    silly me but I couldn't see where it was pulling from blogs that are public only?

  4. drmike
    Member
    Posted 17 years ago #

    Um, we already have this as a plugin.

    WPMU-Feed

  5. lunabyte
    Member
    Posted 17 years ago #

    Yes, but I think they are offering as an alternative.

  6. hery
    Member
    Posted 17 years ago #

    Anyway, wpmu-rss.php is not a plugin. It is just like wp-rss.php but sitewide. So it doesn't require any other thing (but wpmu ;-))

  7. hery
    Member
    Posted 17 years ago #

    lunabyte> It gets only the latest of the most updated blogs. So if 325 writes 3 posts, only his last post will be shown.

  8. lunabyte
    Member
    Posted 17 years ago #

    So it's more of a most recent post per blog, via rss then.

    Got ya.

    Not sure I'd want to actually replace the RSS capabilities with it, but it might have its use as another type of tool.

  9. SteveAtty
    Member
    Posted 17 years ago #

    Hery

    I posted to your blog but it ate half the comment.

    You use the GUID as the permalink - which is not guaranteed to be correct.

    Change

    //$ah_recent_posts[0]->post_cat_name = get_cat_name($ah_recent_posts[0]->post_category);
    $ah_recent_posts_mu[] = $ah_recent_posts[0];
    

    to

    //$ah_recent_posts[0]->post_cat_name = get_cat_name($ah_recent_posts[0]->post_category);
    $ah_recent_posts[0]->blog_id = $blog;
    $ah_recent_posts_mu[] = $ah_recent_posts[0];
    

    and change the link code to:

    
    <link><?php echo get_blog_permalink( $all_post->blog_id, $all_post->ID ) ?></link>
    

About this Topic