Check out either the the_content_feed
and the_excerpt_rss
filters or use the regular content and excerpt filters with the is_feed
conditional function.
The following should get you on the right track:
function wpse_140401_add_to_feed( $content )
{
$twitter_handle = /* grab handle */;
if ( is_feed() ) {
$content .= '<p>' . $twitter_handle . '</p>';
}
return $content;
}
add_filter( 'the_excerpt_rss', 'wpse_140401_add_to_feed' );
add_filter( 'the_content_feed', 'wpse_140401_add_to_feed' );
Note that given the fact that the above uses filters applied to feeds only, the conditional isn’t strictly necessary.
Related Posts:
- How to remove feeds from WordPress totally?
- Getting /feed/ behind post urls in Google Webmaster Tools; crawler errors? [closed]
- Disable comments feed, but not the others
- How to read the xml file in wordpress?
- Is it usual to have a non-Feedburner feed on a WordPress blog?
- Disable links in header (feeds and such)
- Troubleshooting fetch_feed and SimplePie
- How to exclude posts of a certain format from the feed
- Combining RSS Feeds and Sorting with fetch_feed
- wp_remote_get vs. fetch_feed ? which is the better for performance?
- how to publish a feed of posts with a certain custom field value?
- Combining multiple RSS feeds using fetch_feed
- Yoast custom feed template as add_feed function?
- Restrict certain posts from being sent to the feed subscribers
- How to display LinkedIn feed/company updates into WordPress site? [closed]
- Duplicate Posts using Feedwordpress
- Is there a way to have a dual WP feed (full/partial)?
- Custom WordPress Feeds operators?
- How to retrieve the list of all posts ever published via the feed?
- Update feed more frequently
- w3 total cache keeps minifying my feeds
- How to use is_feed() to target a category feed?
- Adding a featured image to atom feed
- How to filter out an iframe from feed
- combine multiple feeds with fetch_feed and display blog titles for each item?
- RSS feed validity and Google Adsense
- Possible to get feed to return latest updated posts rather than latest published?
- Removing the FeedBurner redirect
- Options for authenticated feeds
- RSS feed for deleted posts and comments
- Server stressed by /feed
- How to get feed for pages?
- How can i realize a semi-private research diary blog
- WordPress feeds and publish date
- Editing feed for thumbnails and link
- feed appearing different in the three main browsers
- Fetch_Feed cURL error 28
- Using fetch_feed to retrieve items with non common titles
- How to output WordPress feed in a non-WordPress site?
- Change conditionally a variable value for different feeds
- fetch_feed Performance Issue
- Googlebot adding /feed at the end of my URLs
- Check if feed is fetched successfully
- How can I set my RSS feed time to update feed quicker
- Why is my comment feed broken?
- Require authorization for access to RSS feeds, but leave posts public
- after server upgrade, if I enable custom permalinks, my /feed stops working
- Using links (link_rss field) as the source for fetch_feed
- wordpress feed link change
- Why I don’t see all my post in feed in WordPress
- How can I force fetch_feed to return real URL?
- Default Wordress RSS Widget does not work on a subdomain site, works when I move it
- Expire Header for custom XML feed
- My RSS feed is not working
- How to remove feeds from WordPress totally?
- a lot of errors with feedwordpress
- Does the FD Feedburner plugin create feeds for categories
- fetch_feed function works on template index.php but not in plugin/wp-admin
- Conditional tag to show content in custom rss feed?
- Need correct results from 6 rss (fetch_feed)
- How can I rename the element to in my RSS?
- Password Protect a Podcast Feed?
- How to fetch all the movie details from IMDB
- Does it makes sense to have {post}/feed?
- Custom RSS causing timeout for website
- How to show page content in feed?
- Remove or Edit in Feeds
- How do you make the email field on the profile page read only for subscribers?
- What is the difference between feeds served by my WordPress install vs feeds served by FeedBurner?
- Add Taxonomy Values Within a Custom Post Type RSS Feed
- Add description text under input field for new profile fields
- Removing WordPress profile fields from non-admins
- Why does running get_the_excerpt() when generating JSON file take 28 seconds vs. 599 milliseconds without it?
- What Plugin Do You Use to Turn WordPress based site to A Blog Aggregator
- How to make first_name and last_name required fields in user profile?
- How to set the cache for the built-in SimplePie feed parser?
- Can you use the buddypress profile system without installing the whole of buddypress? [closed]
- How to Fetch Rss Feeds From Other Websites
- How display Last modified in profile wordpress [closed]
- Custom query AFTER rss fetch_feed not working
- Feed error: A feed could not be found at youtube.com/… (1 post) [closed]
- Solving a get_user_meta() problem in Multisite
- In Multisite the users profile picture keeps disappearing for “the other site”
- How can I create a profile field group that the user can’t see?
- Generating a feed of all but one category of posts
- SQL Query members by profile fields Buddypress [closed]
- how to create user profile pages and display them based on users roles
- How can i display pagination in custom comment list?
- Showing extra profile fields in admin – problem with underscore
- Password-protect feed and make it usable in major aggregators
- Adding a second RSS feed
- allowing user to add content, photos without giving access
- How to import and parse RSS feed from a WP site to a non-WP if ‘allow_url_include’ is set to ‘off’?
- How to create a link to a user’s profile page
- Storing additional information about the user
- Renaming/translating “your profile” page
- RSS Feed Custom Title? (code placing) [duplicate]
- Profile Field In Admin Bar
- What techniques can a user employ to achieve a password rated “strong” in the WordPress password checker
- Cache a number of responses from external json feeds?