Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function custom_excerpt_in_rss($content) {
- global $post;
- if (has_excerpt($post->ID)) {
- $excerpt = get_the_excerpt();
- $content = '<description><![CDATA[' . $excerpt . ']]></description>' . $content;
- }
- return $content;
- }
- add_filter('the_excerpt_rss', 'custom_excerpt_in_rss');
Advertisement
Add Comment
Please, Sign In to add comment