How to Show Content Only to RSS Subscribers in WordPress

This is one of the best methods to get more RSS subscribers. You could display a message indicating subscribe to RSS to view the discount coupon or the bonus content. In this article, we will show you How to show content only to RSS subscribers in WordPress.

When should you use this feature?

It’s very difficult in getting the users to subscribe the RSS feed. You need to be really convincing to the user to subscribe to RSS feed. Most of the time it works if you have really good content or if you are a reputable person. Do not try this if your website is very new.

This method is best suited for Coupon sites, Q&A sites, Video sites etc. Many site owners use this tactic where they display subscribe to our RSS to get additional content or download PDF as bonus content. Hence, use your marketing skills to get users to subscribe to the feed.

How to Show Content Only to RSS Subscribers in WordPress

This is the easiest way to show contents only to subscribed users. Install the plugin WP Kill in Feed from the WordPress and activate it. There are no other configurations or settings you need to change once you activate the plugin. It’s now ready to use in the articles.

The plugin provides 2 shortcodes to you.

The first shortcode is [addtofeed] [/addtofeed]. Any content you put inside this tag is visible only to the subscribed users. All type of content like Text, Image, Video etc are allowed inside this tag.

The second shortcode is [killinfeed] [/killinfeed]. If you want to hide any content like Advertisings to the subscribed user then this is the best option. Just wrap the content inside the tag and it will not be shown to the subscribed users.

Example to Shown content only to RSS Subscribers

Show Content Only to RSS Subscribers in WordPress

PHP

1

2

3

[addtofeed]

Show Content only forRSS subscribers

[/addtofeed]

Example to block content only for RSS subscribers

Show Content Only to RSS Subscribers in WordPress

PHP

1

2

3

[killinfeed]

Ads andother contents are hidden forRSS subscribers

[/killinfeed]

Method 2: Show Content only to RSS Feed Subscribers Using Code

Then another way to achieve the same functionality is by adding a small piece of code to your function.php file located in your theme folder.

Show Content Only to RSS Subscribers in WordPress

PHP

1

2

3

4

5

6

functionfeedonly_shortcode($atts,$content){

if(is_feed())

returnapply_filters('the_content',$content);

return"";

}

add_shortcode('feedonly','feedonly_shortcode');

The code is from the same plugin. It basically checks if the user is subscribed to the feed or not. IF the user is subscribed it returns the content wrapped inside the shortcode else it will return an empty text.’