带有自定义描述的Wordpress RSS feed? [英] Wordpress RSS feed with custom description?
问题描述
是否有一种很好的简单方法将过滤器添加到wordpress RSS feed函数中?
我想在RSS2 feed的<description>
标签和Atom feed的<summary>
标签中插入一些自定义文本.有没有简单的方法可以做到这一点?
Is there a nice and simple way to add a filter to the wordpress RSS feed functions?
I want to insert some custom text into the <description>
tag of my RSS2 feed and the <summary>
tag of my Atom feed. Is there any easy way to do that?
我的主题中没有供稿的模板(例如wp-rss2.php或wp-atom.php).我刚刚添加了普通的
I don't have templates for my feeds in my theme (like wp-rss2.php or wp-atom.php). I've just added the normal
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> Atom Feed" href="<?php bloginfo('atom_url'); ?>" />
到我的<head>
有什么想法可以影响我的供稿的描述和摘要吗?
Any idea how I can influence the description and summary of my feeds?
推荐答案
有多种选择,具体取决于您的舒适度/体验水平:
There's several options depending on your comfort/experience level:
- 安装类似 Feed Wrangler 或 Feedburner
- 使用各种PHP函数
- 或编辑 Feed输出
- Install a plugin like Feed Wrangler or Ozh Better Feed
- Use a 3rd party service like Feedburner
- Hook into the feed using various PHP functions
- Or edit the feed output
这篇关于带有自定义描述的Wordpress RSS feed?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!