Author:NinGoo posted on NinGoo.net

".$content; if (function_exists('wp_get_related_posts')) { $content .= "
Related Articles"; $strel = wp_get_related_posts(); $content .= "

".$strel."

"; } $content .= "

PermLink: ".get_permalink()."

"; $content .= "

Add Comments(".get_comments_number($id).")"; $content .= " | Follow NinGoo@Twitter"; $content .= " | Google Reader

"; return ($content); } /* 以下代码来自Ronald Heft, Jr.的Full Text Feed,用于过滤帖子中的more标签,提供全文Feed输出 Plugin Name: Full Text Feed Version: 1.04 Plugin URI: http://cavemonkey50.com/code/full-feed/ Description: Prevents WordPress 2.1+ from adding a more link to your website's feed. Author: Ronald Heft, Jr. Author URI: http://cavemonkey50.com/ */ function ff_restore_text ($content) { if ( is_feed() ) { global $post, $page, $pages; if ( !empty($post->post_password) ) { // if there's a password if ( stripslashes($_COOKIE['wp-postpass_'.COOKIEHASH]) != $post->post_password ) { // and it doesn't match the cookie $content = get_the_password_form(); return $content; } } if ( $page > count($pages) ) $page = count($pages); $content = preg_replace('//', '', $pages[$page-1]); } return $content; } add_filter('the_content', 'ff_restore_text', -1); ?>