Ada WPMU Sitewide Feed Plugin

Only if you install WPMU/ WP 3.0 as subdomain installation when you installed WordPress, you will be able to have feeds like “yourdomain.com/full-feed/”. When you install WPMU/ WP 3.0 into a subdirectory installation, your feed url will be something like “yourdomain.com/subdirectory?wpmu-feed=full-feed”.

wp-config.php should have either of the below constants defined and set, in order for the plugin to detect its a subdomain installation.

define(‘SUBDOMAIN_INSTALL’, true);
define(‘VHOST’, ‘yes’);

If your feed is working and it validates, including it in RSS Widget to show on your site does not actually show the entries, then follow this:
You must disable your cache plugin to cache the feed as a static page.
If you are using W3-Total-Cache plugin, add your
Feed URL (relative path): to the Never cache the following pages: section under Page Cache Settings. Ex. “/full-feed/” and make sure to clear empty all caches.

disable_static_page_cache_for_feeds

The reason is your cache plugin makes the cache of the feed [which has a Content-Type: application/xml].  But after it is cached, when the browser requests, your cache plugin deliver the already cached static file, which now is delivered with Content-Type: text/html].  This causes the RSS Widget to not recognize the feed.


Current version: 0.5.2

  • Both Subdirectory and VHOST installations are now supported. Thanks to DaryL.
  • Works on both WP 3.0 as well as WPMU 2.9.2
  • Compatible with WP Multi-Network plugin . You can have different blog ID than 1 to trigger the full feed. [This was fixed in previous version, but forgot to mention.]
  • Last Updated: 2010/07/07
  • Live example: Adadaa
  • Thanks DaryL, and Jura for testing.

Previous versions: 0.5.0 , 0.4.0

Description:
This plugin creates four (4) seperate RSS 2.0 feeds from posts, comments, pages, and one combined [posts & pages] across all blogs on your WPMU powered site. This will skip the first post, comment, and page of a blog; also will not include spam and deleted blogs.

Instruction:

WPMU:

Unzip and upload to mu-plugins directory.

WP 3.0:

You can either create a directory called “mu-plugins” inside the /wp-content/ folder and put it inside, which in turn, will automatically activate the plugin.
Or you can put it inside the plugin directory and activate it yourself.

Upgrade: Just replace the old file with this.

Download current version

If you think I deserve some donations, please make a donation through PayPal at the form on the right.

Both Subdirectory and VHOST installations are supported.

Features:
Generates sitewide combined [posts & pages] feed
Generates sitewide posts feed
Generates sitewide comments feed
Generates sitewide pages feed
Server-side caching via WP Object Cache
Client-side caching via ETag headers
Admin screen to configure options
Compliance with xhtml and xml standards
& many more

This is the options help page:

  • Trigger Blog
    • Set this to the numeric blog ID that the feed will latch to.
    • You can find the blog ID by looking under the ‘Blogs’ submenu in the ‘Site Admin’ menu.
  • Feed URL
    • Set this to a URL (relative path only!) that will trigger the feed output. Be careful to avoid names used by pages, categories, or other permalinks existing on your site.
    • This feed outputs the combined feeds of Posts and Pages.
  • Posts Trigger URL
    • Set this to a URL to be appended to Feed URL (relative path only!) that will trigger the posts feed output. Be careful to avoid names used by pages, categories, or other permalinks existing on your site.
  • Comments Feed URL
    • Set this to a URL to be appended to Feed URL (relative path only!) that will trigger the comment feed output. Be careful to avoid names used by pages, categories, or other permalinks existing on your site.
  • Pages Trigger URL
    • Set this to a URL to be appended to Feed URL (relative path only!) that will trigger the pages feed output. Be careful to avoid names used by pages, categories, or other permalinks existing on your site.
  • Feed Title
    • The title of your sitewide feed.
  • Feed Description
    • The description of your sitewide feed.
  • Show Most Recent
    • Set this to the number of items to show in the feed.
  • Full Text or Summary
    • Choose your preference of full text articles or summaries only.
  • Minimum number of chars in content
    • What is minimum number of chars a content should have before it is included in the global feed. This will remove specific pages created just with wp shortcodes – [wp-short-code].
  • URL of site image
    • Full URL for an image to be shown as site image in the feed.
  • Show avatar
    • Show author’s avatar of the post.
  • Append Stats to Feed
    • Appends query count, execution time, and cache notification (if feed was cached by WP Object Cache) to the end of the feed output.
  • Etag Header
    • Setting this enables ETag header support for RSS Reader/Browser caching. Requires that you use ctrl+F5 to force a refresh in your browser. Huge bandwidth saver.
  • Object Cache
    • Stores feed output in WP Object Cache, if available, to dramatically reduce site load and increase performance.
  • Expire feed from cache
    • Set this to zero if you have no problems with future dated posts showing at maturity (wordpress build 3514 and later) or set the number of minutes to determine how long the feed is held in cache before being regenerated (to include maturing posts).
    • Your wordpress version was auto-detected and appropriate defaults were chosen accordingly.
  • Reset all settings to default
    • Sets all settings back to original values.
d have either of the below constants defined and set, in order for the plugin to detect its a subdomain insta
Tags: