How to Use RSS in WordPress

One of the benefits of WordPress is it has RSS built in. RSS (Really Simple Syndication, or Rich Site Summary) is an easy way to syndicate content, which is published as feeds, and make it easy for that content to be consumed online and through RSS readers.rss-40674_960_720

RSS is an XML file that includes either the full text or a summary of the post, the publishing date, author’s name, and categories that can be read using apps such as RSS readers, feed readers, and aggregators. These apps run on most devices including desktops and mobile, and you can even access them on the web. One of the greatest advantages is these feeds are all in one place, making it easy for the subscriber to see and read.

There are two ways that RSS feeds can be used:

RSS subscription – typically your visitors will subscribe to your feed so they can read your updates in their RSS readers. This is the most popular way that RSS feeds are used. Users can subscribe to the RSS feeds of your posts and comments and they’re alerted every time there’s an update, so they don’t have to visit the site just to check.

RSS Aggregation – another way RSS can be used is to aggregate feeds from outside sources. These can be displayed in posts and pages on your WordPress site for your visitors to see. Feeds can be posted automatically so you can set your site on autopilot, or manually so you can have full control over every post.

Let’s take a closer look at both methods of using RSS feeds.

RSS Subscriptions

RSS subscription

These feeds are published automatically, allowing you to publish your posts and not worry about your feeds. There are some things you can do though that will take your feeds to a whole new level and stand out from the crowd.

RSS is already activated in WordPress, but there are still some things you can do to customize how it works for your website.

RSS Settings

RSS Settings

In your dashboard, go to Settings and select Reading. Here you’ll find a few settings to give you control over how your subscribers receive your RSS feeds.

Syndication feeds show the most recent – you can choose the number of posts that show up in your subscriber’s RSS readers. 10 is the default.

For each article in a feed, show – here you can choose between full text and summary. If you choose full text they won’t have to come to your website to read the article. Summary gives them a small portion of the article and they can decide whether or not to come back to your site to read the rest.

Promoting Your RSS Feed

meta

One of the widgets that’s typically included with a WordPress installation is Meta. This includes a few links for site administration, logging in or out of the site, a link to WordPress.org, and links to RSS feeds for both entries and comments. Even though it has the links, the problem with Meta is it doesn’t do a lot to promote those links.

A better place to promote your RSS feeds is within your social media links. You can do this with an RSS icon in your sidebar using social icons. You can even get statistics for your feeds using Feedburner or Feedblitz. Feedburner gives you a subscription box that can go in your sidebar, which sends the feeds to your subscriber’s email inboxes.

RSS Feeds for Categories

The typical RSS feed links to all feeds for all categories, but you’re not limited to all categories. You can provide a way for your readers to subscribe to a feed based on individual categories. To do this, simply select the category’s tag on your website (by going to a post for the category or selecting the tag from a list). Then copy the URL and add /feed/ at the end. It will look like this:

http://ift.tt/1RkqEMi

Now copy this URL and paste it in as the link for the RSS icon or text that you want to use to create the link.

As an example, I’m creating an RSS feed for the WP Mayor category called plugin reviews.

The URL for the category looks like this:

http://ift.tt/1U8aBXG

Next, add feed/ to the end:

http://ift.tt/1RkqF2w

Now, create the link. My example looks like this:

Plugin Reviews RSS Feed

When readers click on this link they’re taken to the RSS feed for the category that they can then subscribe to using their RSS feed readers in their browsers or apps. The link can be placed over text or an image such as an RSS icon. I don’t recommend using it over a standard RSS icon because it can be confusing to your subscribers if it’s not identified as the category.

Custom Post Types

You can also create RSS feeds for custom post types. These are created in a similar way as feeds for categories. You’ll add the custom post type at the end of the feed URL. It would like something like this:

http://ift.tt/1U8aBXJ

You can also include custom taxonomies and tags. For example, if you have a post type for themes and a tag for magazine themes, the feed URL could look like this:

http://ift.tt/1RkqGU9

You would use this link in the same way you would the categories link.

RSS Aggregation

Another way to use RSS feeds is to place a feed aggregator on your WordPress website in order to post feeds from other sites. You can do this with a plugin such as WP RSS Aggregator. Let’s take a closer look.

WP RSS Aggregator

WP RSS Aggregator

WP RSS Aggregator is a free plugin that lets you bring in feeds from outside sources and post them in a post or page using shortcodes. Using premium extensions you can create posts automatically, filter by keywords, include thumbnails, categories, and full text, add the feeds to widgets, and have it to create new content based on the feeds that’s unique and readable.

Creating a New Feed

Creating a New Feed

Once you’ve installed the plugin, go to RSS Aggregator in the dashboard menu and select Add New. Create a name for the link, paste in the feed’s URL, and select the number of feeds you want to display. You can set the feed as active or paused, choose the update interval, schedule activation, and even have it to delete old feeds. Choose your settings and publish the feed.

Next, create a post or page and paste in the shortcodes you want.

shortcodes

If you want to make any modifications to the feeds you can also do that with the schortcodes. For example, if you want to only include feeds from certain sources, add the code for the source along with the source’s number. You’ll find this number in Feed Sources in the WP RSS Aggregator menu.

WP RSS Aggregator results

The result is a post with links to the original articles, complete with the source’s name and publish date. You can adjust how all of this looks and acts. For example, you can choose whether or not to show the date, change the date format, change the text preceding the source, show authors, set links to no follow, etc. If the article has video you can embed it into your post.

Embeding the Code

Rather than using a shortcode, you can embed the code within your theme.

To add the code to your template use the WordPress function do_shortcode()

The sample from the WP Aggregator shortcodes page shows example code that looks like this:

Setting Parameters

You can modify the display using parameters within the code. You can see the shortcodes page for the parameters.

For example, if you want to set the number of links on the page you would use the limit filter:

Other parameters can be set, such as thumbnails, keywords, and categories, if you have the premium extensions.

Final Thoughts

RSS is a powerful tool for publishers using the WordPress platform. RSS is a great tool to efficiently syndicate content to be read in RSS readers and as aggregated content in WordPress pages and posts. Using WP RSS Aggregator you can post syndicated content from multiple sources and through extensions create new content that is unique and readable.

Now it’s your turn. How do you use RSS feeds? Do you set up buttons or links for categories or custom post types? Do you use RSS aggregation? Let us know in the comments below.

About Randy A. Brown

Randy A. Brown is a freelance writer from east TN specializing in WordPress and eCommerce. He's a longtime WordPress enthusiast and loves learning new things and sharing information with others. If he's not writing or reading, he's probably playing guitar. You can contact Randy at randyabrown.com. Follow him on Twitter: @randyabrown

Let's block ads! (Why?)


SHARE

Unknown

  • Image
  • Image
  • Image
  • Image
  • Image
    Blogger Comment

0 comments:

Post a Comment