close
wprssonlycontent

If you want to add bonus content to your RSS feed, you can use this feature in order to encourage more users to subscribe to your RSS feed. This article will explain show content only for RSS subscribers in .

When and Why You Need Feed Only Content in WordPress?

The best way to get updates from your website is by either signing up for your email list or by subscribing to the RSS feed. You can even send the WordPress posts to the email list subscribers using the services like MailChimp, Aweber etc.

This however is a little hard for a new website. So many site owners use a marketing tactic like Content Upgrade to get more subscribers.

You can also offer users bonus 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.

subscribebanner

Method 1: Adding Feed Only Content using a Plugin

This is an easier method and is recommended for beginners. You need to install and activate the WP Kill in Feed plugin. Upon activate the plugin will make two shortcodes available for your use.

The first shortcode is [addtofeed]. It allows you to add feed only content wrapped in the shortcode. Like this:

[addtofeed]

This content is for RSS feed subscribers only

[/addtofeed]

feedonlyshortcode

Between the shortcodes you can add anything you like for example text, images, videos etc. It will only be visible in the RSS feed and regular visitors of your website will not see it.

You can tell regular visitors that there is more content which will be visible to RSS feed subscribers and then add a link to your RSS feed.

Hiding Content from RSS Feed Subscribers

The plugin is also able to hide content from your RSS subscribers and make it available to those users who visit your site.

Simply wrap the content in [killinfeed] [/killinfeed] shortcodes and it will not be visible to your feed subscribers. Like this:

[killinfeed]Content hidden from RSS feed subscribers [/killinfeed]

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

This is a more advanced method and requires you to add code in your WordPress site. Simply add this code to your theme’s functions.php file or in a site-specific plugin.

1function feedonly_shortcode( $atts, $content) {

 

2    if (is_feed())

 

3    return apply_filters( ‘the_content’, $content );

 

4    return “”;

 

5 

 

6}

 

7add_shortcode(‘feedonly’, ‘feedonly_shortcode’);

 

This code is basically the same as the plugin. It simply checks if user has requested a feed, then add feed only content to post content. Otherwise, it skips the feed only content.

You will need to wrap feed only content in a shortcode like this:

[feedonly]This content will only be visible to RSS feed subscribers[/feedonly]

Content inside the shortcode will only be visible to your feed subscribers. Again you can tell your site visitors that they will get to see more content if they subscribe to your RSS feed.

 

Tags : wordpressWordPress how to
Nooruddin Ahmed

The author Nooruddin Ahmed

An avid football fan. Lives for the weekend game.Aviation enthusiast. Believes in letting bygones be bygones.

Leave a Response