{"id":139,"date":"2014-06-26T21:47:48","date_gmt":"2014-06-27T02:47:48","guid":{"rendered":"http:\/\/etapien.com\/guides\/?p=139"},"modified":"2020-08-24T14:22:21","modified_gmt":"2020-08-24T19:22:21","slug":"add-social-buttons-wordpress-rss-feed","status":"publish","type":"post","link":"https:\/\/etapien.com\/guides\/add-social-buttons-wordpress-rss-feed\/","title":{"rendered":"How to Add Social Buttons in WordPress RSS Feed"},"content":{"rendered":"<p style=\"color: #464646;\">While most modern feed readers include social sharing capabilities, in this article, we will show you how to add social buttons in WordPress RSS feed.<\/p>\n<p style=\"color: #464646;\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-21457\" title=\"Social sharing buttons displayed in WordPress RSS Feed\" src=\"http:\/\/cdn.wpbeginner.com\/wp-content\/uploads\/2014\/06\/rss-feed-social-icons.png\" alt=\"Social sharing buttons displayed in WordPress RSS Feed\" width=\"520\" height=\"240\" \/><\/p>\n<p style=\"color: #464646;\">First thing you need to do is download the social buttons you would want to display in your feeds. There are several social media icon sets available for free. Choose one that best suits your needs. After that you need to go to\u00a0<strong>Media \u00bb Add New<\/strong>\u00a0and upload Facebook and Twitter icons to your media library.<\/p>\n<p style=\"color: #464646;\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-21452\" title=\"Upload social media icons to WordPress Media Library\" src=\"http:\/\/cdn.wpbeginner.com\/wp-content\/uploads\/2014\/06\/upload-icons.jpg\" alt=\"Upload social media icons to WordPress Media Library\" width=\"520\" height=\"289\" \/><\/p>\n<p style=\"color: #464646;\">Once you have uploaded the icons, you need to copy their location URL. Simply go to\u00a0<strong>Media \u00bb Library<\/strong>\u00a0and click on the\u00a0<em>Edit<\/em>\u00a0link below Twitter icon.<\/p>\n<p style=\"color: #464646;\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-21453\" title=\"Edit social icon files\" src=\"http:\/\/cdn4.wpbeginner.com\/wp-content\/uploads\/2014\/06\/edit-media1.png\" alt=\"Edit social icon files\" width=\"520\" height=\"307\" \/><\/p>\n<p style=\"color: #464646;\">On the Edit Media page, copy the File URL and paste it in a text editor. Repeat the process for the Twitter icon as well. We will need these URLs later.<\/p>\n<p style=\"color: #464646;\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-21454\" title=\"Get the icon file URL\" src=\"http:\/\/cdn3.wpbeginner.com\/wp-content\/uploads\/2014\/06\/media-file-url.png\" alt=\"Get the icon file URL\" width=\"520\" height=\"254\" \/><\/p>\n<p style=\"color: #464646;\">We will use the default WordPress\u00a0content filter\u00a0to add these icons below each post in your WordPress RSS feed.<\/p>\n<p style=\"color: #464646;\">You need to add this code in your theme\u2019s\u00a0functions.php\u00a0file or a\u00a0site-specific plugin.<\/p>\n<blockquote>\n<div class=\"line alt1\">\n<pre style=\"color: #000000;\">\/\/ add custom feed content\r\nfunction wpb_add_feed_content($content) {\r\n\r\n\/\/ Check if a feed is requested\r\nif(is_feed()) {\r\n\r\n\/\/ Encoding post link for sharing\r\n$permalink_encoded = urlencode(get_permalink());\r\n\r\n\/\/ Getting post title for the tweet\r\n$post_title = get_the_title(); \r\n\r\n\/\/ Content you want to display below each post\r\n\/\/ This is where we will add our icons\r\n\r\n$content .= '&lt;p&gt;\r\n&lt;a href=\"http:\/\/www.facebook.com\/sharer\/sharer.php?u=' . $permalink_encoded . '\" title=\"Share on Facebook\"&gt;&lt;img src=\"Facebook icon file url goes here\" title=\"Share on Facebook\" alt=\"Share on Facebook\" width=\"64px\" height=\"64px\" \/&gt;&lt;\/a&gt;\r\n\r\n&lt;a href=\"http:\/\/www.twitter.com\/share?&amp;text='. $post_title . '&amp;amp;url=' . $permalink_encoded . '\" title=\"Share on Twitter\"&gt;&lt;img src=\"Facebook icon file url goes here\" title=\"Share on Twitter\" alt=\"Share on Twitter\" width=\"64px\" height=\"64px\" \/&gt;&lt;\/a&gt;\r\n&lt;\/p&gt;';\r\n}\r\n\r\nreturn $content;\r\n}\r\n\r\nadd_filter('the_excerpt_rss', 'wpb_add_feed_content');\r\nadd_filter('the_content', 'wpb_add_feed_content');<\/pre>\n<\/div>\n<\/blockquote>\n<p>This code simply adds HTML to display social icons below post content in your WordPress RSS feeds.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>While most modern feed readers include social sharing capabilities, in this article, we will show you how to add social buttons in WordPress RSS feed. First thing you need to do is download the social buttons you would want to display in your feeds. There are several social media icon sets available for free. Choose [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[34],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Add Social Buttons in WordPress RSS Feed - Tech Howtos<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/etapien.com\/guides\/add-social-buttons-wordpress-rss-feed\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Add Social Buttons in WordPress RSS Feed - Tech Howtos\" \/>\n<meta property=\"og:description\" content=\"While most modern feed readers include social sharing capabilities, in this article, we will show you how to add social buttons in WordPress RSS feed. First thing you need to do is download the social buttons you would want to display in your feeds. There are several social media icon sets available for free. Choose [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/etapien.com\/guides\/add-social-buttons-wordpress-rss-feed\/\" \/>\n<meta property=\"og:site_name\" content=\"Tech Howtos\" \/>\n<meta property=\"article:published_time\" content=\"2014-06-27T02:47:48+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-08-24T19:22:21+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/cdn.wpbeginner.com\/wp-content\/uploads\/2014\/06\/rss-feed-social-icons.png\" \/>\n<meta name=\"author\" content=\"Etapien\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Etapien\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/etapien.com\/guides\/add-social-buttons-wordpress-rss-feed\/\",\"url\":\"https:\/\/etapien.com\/guides\/add-social-buttons-wordpress-rss-feed\/\",\"name\":\"How to Add Social Buttons in WordPress RSS Feed - Tech Howtos\",\"isPartOf\":{\"@id\":\"https:\/\/etapien.com\/guides\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/etapien.com\/guides\/add-social-buttons-wordpress-rss-feed\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/etapien.com\/guides\/add-social-buttons-wordpress-rss-feed\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/cdn.wpbeginner.com\/wp-content\/uploads\/2014\/06\/rss-feed-social-icons.png\",\"datePublished\":\"2014-06-27T02:47:48+00:00\",\"dateModified\":\"2020-08-24T19:22:21+00:00\",\"author\":{\"@id\":\"https:\/\/etapien.com\/guides\/#\/schema\/person\/c67f514649b78dbb5ef0c254a0521424\"},\"breadcrumb\":{\"@id\":\"https:\/\/etapien.com\/guides\/add-social-buttons-wordpress-rss-feed\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/etapien.com\/guides\/add-social-buttons-wordpress-rss-feed\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/etapien.com\/guides\/add-social-buttons-wordpress-rss-feed\/#primaryimage\",\"url\":\"http:\/\/cdn.wpbeginner.com\/wp-content\/uploads\/2014\/06\/rss-feed-social-icons.png\",\"contentUrl\":\"http:\/\/cdn.wpbeginner.com\/wp-content\/uploads\/2014\/06\/rss-feed-social-icons.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/etapien.com\/guides\/add-social-buttons-wordpress-rss-feed\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/etapien.com\/guides\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Add Social Buttons in WordPress RSS Feed\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/etapien.com\/guides\/#website\",\"url\":\"https:\/\/etapien.com\/guides\/\",\"name\":\"Tech Howtos\",\"description\":\"Tech related useful howtos\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/etapien.com\/guides\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/etapien.com\/guides\/#\/schema\/person\/c67f514649b78dbb5ef0c254a0521424\",\"name\":\"Etapien\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/etapien.com\/guides\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/55021fd8fb4a829ad64ffab0a92d3b90?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/55021fd8fb4a829ad64ffab0a92d3b90?s=96&d=mm&r=g\",\"caption\":\"Etapien\"},\"url\":\"https:\/\/etapien.com\/guides\/author\/Etapien\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Add Social Buttons in WordPress RSS Feed - Tech Howtos","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/etapien.com\/guides\/add-social-buttons-wordpress-rss-feed\/","og_locale":"en_US","og_type":"article","og_title":"How to Add Social Buttons in WordPress RSS Feed - Tech Howtos","og_description":"While most modern feed readers include social sharing capabilities, in this article, we will show you how to add social buttons in WordPress RSS feed. First thing you need to do is download the social buttons you would want to display in your feeds. There are several social media icon sets available for free. Choose [&hellip;]","og_url":"https:\/\/etapien.com\/guides\/add-social-buttons-wordpress-rss-feed\/","og_site_name":"Tech Howtos","article_published_time":"2014-06-27T02:47:48+00:00","article_modified_time":"2020-08-24T19:22:21+00:00","og_image":[{"url":"http:\/\/cdn.wpbeginner.com\/wp-content\/uploads\/2014\/06\/rss-feed-social-icons.png"}],"author":"Etapien","twitter_misc":{"Written by":"Etapien","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/etapien.com\/guides\/add-social-buttons-wordpress-rss-feed\/","url":"https:\/\/etapien.com\/guides\/add-social-buttons-wordpress-rss-feed\/","name":"How to Add Social Buttons in WordPress RSS Feed - Tech Howtos","isPartOf":{"@id":"https:\/\/etapien.com\/guides\/#website"},"primaryImageOfPage":{"@id":"https:\/\/etapien.com\/guides\/add-social-buttons-wordpress-rss-feed\/#primaryimage"},"image":{"@id":"https:\/\/etapien.com\/guides\/add-social-buttons-wordpress-rss-feed\/#primaryimage"},"thumbnailUrl":"http:\/\/cdn.wpbeginner.com\/wp-content\/uploads\/2014\/06\/rss-feed-social-icons.png","datePublished":"2014-06-27T02:47:48+00:00","dateModified":"2020-08-24T19:22:21+00:00","author":{"@id":"https:\/\/etapien.com\/guides\/#\/schema\/person\/c67f514649b78dbb5ef0c254a0521424"},"breadcrumb":{"@id":"https:\/\/etapien.com\/guides\/add-social-buttons-wordpress-rss-feed\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/etapien.com\/guides\/add-social-buttons-wordpress-rss-feed\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/etapien.com\/guides\/add-social-buttons-wordpress-rss-feed\/#primaryimage","url":"http:\/\/cdn.wpbeginner.com\/wp-content\/uploads\/2014\/06\/rss-feed-social-icons.png","contentUrl":"http:\/\/cdn.wpbeginner.com\/wp-content\/uploads\/2014\/06\/rss-feed-social-icons.png"},{"@type":"BreadcrumbList","@id":"https:\/\/etapien.com\/guides\/add-social-buttons-wordpress-rss-feed\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/etapien.com\/guides\/"},{"@type":"ListItem","position":2,"name":"How to Add Social Buttons in WordPress RSS Feed"}]},{"@type":"WebSite","@id":"https:\/\/etapien.com\/guides\/#website","url":"https:\/\/etapien.com\/guides\/","name":"Tech Howtos","description":"Tech related useful howtos","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/etapien.com\/guides\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/etapien.com\/guides\/#\/schema\/person\/c67f514649b78dbb5ef0c254a0521424","name":"Etapien","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/etapien.com\/guides\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/55021fd8fb4a829ad64ffab0a92d3b90?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/55021fd8fb4a829ad64ffab0a92d3b90?s=96&d=mm&r=g","caption":"Etapien"},"url":"https:\/\/etapien.com\/guides\/author\/Etapien\/"}]}},"_links":{"self":[{"href":"https:\/\/etapien.com\/guides\/wp-json\/wp\/v2\/posts\/139"}],"collection":[{"href":"https:\/\/etapien.com\/guides\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/etapien.com\/guides\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/etapien.com\/guides\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/etapien.com\/guides\/wp-json\/wp\/v2\/comments?post=139"}],"version-history":[{"count":4,"href":"https:\/\/etapien.com\/guides\/wp-json\/wp\/v2\/posts\/139\/revisions"}],"predecessor-version":[{"id":143,"href":"https:\/\/etapien.com\/guides\/wp-json\/wp\/v2\/posts\/139\/revisions\/143"}],"wp:attachment":[{"href":"https:\/\/etapien.com\/guides\/wp-json\/wp\/v2\/media?parent=139"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/etapien.com\/guides\/wp-json\/wp\/v2\/categories?post=139"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/etapien.com\/guides\/wp-json\/wp\/v2\/tags?post=139"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}