[英]Wordpress RSS feed with custom description?
Is there a nice and simple way to add a filter to the wordpress RSS feed functions? 有没有一种很好的简单方法可以向wordpress RSS feed函数添加过滤器? I want to insert some custom text into the
<description>
tag of my RSS2 feed and the <summary>
tag of my Atom feed. 我想在RSS2 feed的
<description>
标记和Atom feed的<summary>
标记中插入一些自定义文本。 Is there any easy way to do that? 有没有简单的方法可以做到这一点?
I don't have templates for my feeds in my theme (like wp-rss2.php or wp-atom.php). 我的主题中没有供稿的模板(例如wp-rss2.php或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'); ?>" />
to my <head>
对我的
<head>
Any idea how I can influence the description and summary of my feeds? 知道如何影响Feed的描述和摘要吗?
There's several options depending on your comfort/experience level: 根据您的舒适度/体验水平,有几种选择:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.