I want to display post thumbnails and hyperlinks in post on my feed page. I know in templates you can copy page template and modify it, but here i am dealing with wp-includes/feed.php or wp-includes/feed-rss . I have two question
- what can i do get to get thumbnails of post and links of post?
- If i edit the feed template, tomorrow when wordpress updates, it will remove my custom code, how can i make it like a child-template, so my code doesn’t get disturbed, when new updates come.
you don’t need to edit WordPress core files and don’t do this, when hooks are available to modify use
the_excerpt_rss
andthe_content_feed
filter to add thumbnails or your custom links in feed.EDIT: place this code in your theme’s functions.php