简体   繁体   中英

Wordpress RSS feed with custom description?

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="alternate" 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:

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM