Skip to content

Instantly share code, notes, and snippets.



Last active Aug 29, 2015
What would you like to do?
WordPress Plugin: T5 Short Feed
<?php # -*- coding: utf-8 -*-
* Plugin Name: T5 Short Feed
* Plugin URI:
* Description: Creates a feed with just the excerpt, no matter what you have set for the main feed. Please visit the permalinks page once after activation. The feed is then available at <code>/feed/summary/</code>. Requires PHP 5.3.
* Version: 07.05.15
* Required: 4.2
* Author: Thomas Scholz <>
* Author URI:
* License: MIT
* License URI:
add_action( 'wp_loaded', function() {
add_feed( 'summary', function() {
add_filter( 'pre_option_rss_use_excerpt', '__return_true' );
require ABSPATH . WPINC . '/feed-rss2.php';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment