开发者

Wordpress RSS feed with custom description?

开发者 https://www.devze.com 2023-02-12 05:15 出处:网络
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

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?

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="alterna开发者_开发知识库te" type="application/rss+xml" title="<?php bloginfo('name'); ?> Atom Feed" href="<?php bloginfo('atom_url'); ?>" />

to my <head>

Any idea how I can influence the description and summary of my feeds?


There's several options depending on your comfort/experience level:

  • 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
0

精彩评论

暂无评论...
验证码 换一张
取 消