Thrasos Website

Sometimes I write about tech and code, and sometimes I don't.

Menu
  • Home
  • About
Menu

WordPress: Adding stuff to your RSS feed

Posted on October 29, 2011June 14, 2013 by thrasos

So you want to add stuff to your RSS feed? And by stuff I mean ads, links, text, dead cats etc.

Well it’s another add_filter() function based solution. Quick and easy by editing functions.php.

There is another more dirty way to do this but I wont get in to it now.

[cc lang=”php”]


Have you taken your picture?


‘;

return $content; }

add_filter(‘the_excerpt_rss’, ‘addStuff’);

add_filter(‘the_content_rss’, ‘addStuff’);

?>

[/cc]

Posting stuff that helped me and so I don’t forget :-)

Category: blog, code

Post navigation

← WordPress: Adding delay between post and rss
Mac show hidden files →

You can say something here... Cancel reply

  • GitHub
  • LinkedIn
  • Twitter
  • Telegram
  • Cleaning up VCARD contacts without a phone.January 29, 2023
  • Docker Compose Notes #2December 15, 2022
  • Docker Notes #1December 14, 2022
  • A.I generated poem in GreekDecember 11, 2022
  • A.I. Generated ArtDecember 10, 2022
  • A.I. generated art.December 9, 2022
  • MailCow, simple html in maindomainSeptember 10, 2022
  • CamouflageFebruary 1, 2022
  • Kerkhoffs principleNovember 16, 2020
  • ASCII ARTAugust 13, 2020
© 2023 Thrasos Website