• I want to make a modification to the core feed-rss2.php file (basically, have it feed the author’s first and last name rather than the username), but also want to follow the maxim of never-ever-change-core-files. How do I make sure feeds will be generated by the modified file? Or is there a way?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator bcworkz

    (@bcworkz)

    You can alter what file is used as a feed template. See Customizing Feeds.

    Thread Starter mjd1953

    (@mjd1953)

    Wow… Probably should have mentioned that I’m pretty green when it comes to php. I think I get most of what the suggested link says, but am not sure still about where to put the custom feed so that it’s not overwritten by some future version of WordPress.

    Moderator bcworkz

    (@bcworkz)

    Not only the feed template, but the code that loads the template needs to be somewhere safe. At least you recognized the need!

    You can either create a simple plugin or create a child theme. Your code and template are safe in either place.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to modify rss template but leave core feed-rss2.php alone’ is closed to new replies.