将以下内容添加到functions.php
文件:
add_filter(\'feed_link\',\'my_site_feed\', 10, 2);
function my_site_feed($url, $feed_type ){
$user = my_get_the_username(); //this function should return the username.
return add_query_arg( array(\'user\' => $user ), $url );
}
并使用以下方式获取rss提要url:
echo get_bloginfo(\'rss2_url\');
或
bloginfo(\'rss2_url\');