Do you want to add exclusive content for your RSS subscribers? You can use this additional content as a way to encourage more users to subscribe to your RSS feed. In this article, we will show you how to display content for RSS subscribers only in WordPress.
The best way for users to receive updates to your website is by subscribing to your email list or subscribing to your RSS feed. You can even send your WordPress posts to your email list subscribers using email services like MailChimp, Aweber, etc.
However, it is a bit difficult to convince users to subscribe to the RSS feed of a new website. Many site owners use a marketing tactic called "Content Updates" to get more subscribers.
Similarly, you can offer your users additional content if they subscribe to your RSS feed. You can quickly get a lot more subscribers by combining this with popular lead generation tools like OptinMonster.
With that said, let's see how you can display content only to RSS subscribers or add WordPress-only content.
This method is easier and is recommended for beginners.
The first thing you need to do is install and activate the WP Kill in Feed plugin. For more details, check out our step-by-step guide on how to install a WordPress plugin.
Upon activation, the plugin makes two new shortcodes available for you to use.
The first shortcode is [addtofeed]
. It allows you to add content-only content wrapped in the shortcode. I like this:
Between the shortcodes, you can add any content you want, such as text, images, YouTube videos, etc. It will only be visible in the RSS feed and will not be seen by regular visitors to your website.
You can let repeat visitors know that more content will be visible to RSS feed subscribers, and then add a link to your RSS feed.
The plugin also allows you to hide the content of RSS feed subscribers and make it visible only to users visiting your website.
It just wraps the content in [killinfeed] [/ killinfeed]
shortcodes and will not be visible to your feed subscribers. I like this:
This method requires you to add code to your WordPress site. If you feel comfortable pasting code snippets into WordPress, you can use this method.
Simply add this code to your theme's functions.php file or in a site-specific plugin.
función feedonly_shortcode ($ atts, $ content) if (is_feed ()) return apply_filters ('the_content', $ content); regreso ""; add_shortcode ('feedonly', 'feedonly_shortcode');
This code is basically the same as the plugin. It simply checks if the user has requested a feed and then adds feed-only content to post content. Otherwise, feed-only content is skipped.
You will have to wrap the content of the feed only in a shortcode like this:
The content inside the shortcode will only be visible to your news subscribers. Again, you can tell your site visitors that they will be able to see more content if they subscribe to your RSS feed.
We hope this article helped you learn how to display subscriber-only content from RSS feeds in WordPress. You may also want to check out our 9 extremely useful RSS snippets and tricks for WordPress.
If you enjoyed this article, please subscribe to our WordPress YouTube Channel video tutorials. You can also find us on Twitter and Facebook.