If you’re like me, you write a lot of posts for sites other than your own and want to be able to share those posts with your readers. Figuring out how to do this with particular systems might pose a specific challenge, especially if those networks only allow you to import one RSS feed. There may also be times where you want to only share writing by you, and if you have a lot of guest bloggers on your site as well as guest posts on other sites, having a full RSS feed for your blog won’t do.
Creating a Custom RSS Feed
The solution to this would be having an RSS feed with only your content in it from each of the sources you write for. Of course, that is a challenge in of itself. When I came to the realization that I wanted this type of an RSS feed, I thought “Super, I’ll use Yahoo Pipes.” That didn’t pan out so well, however, as some of the feeds I wanted to use didn’t work with their system. If I ever do get it to work, or they fix the issues I’ve been having in the upcoming 2.0 version, I’ll add the details here or create a new post.
In the meantime, I went for it the old fashioned way – by creating an XML file from scratch. Ok, not from scratch, but using the base elements from another RSS feed.
I created it using Notepad ++, a free text editor for Windows that can save code in PHP, XML, and other formats without any of the unusual characters that can slip into coding and make it unusable on a website. I’m sure there is something similar for Mac and other platforms, but I’ll leave that to my commenters to share those with you as I’m a PC gal.
Here is a portion of my custom RSS feed looks with two posts in it.
<?xml version="1.0" encoding="UTF-8"?>
<title>Kristi Hines Freelance Writing Portfolio</title>
<atom:link href="http://kristihines.com/freelancewriting.xml" rel="self" type="application/rss+xml" />
<description>Blog posts and articles by Kristi Hines on social media, blogging, search optimization, and online marketing.</description>
<lastBuildDate>Wed, 22 Jun 2011 02:11:01 +0000</lastBuildDate>
<title>How to Get More Facebook Likes for Your Website and Fan Page</title>
<pubDate>Tue, 21 Jun 2011 12:00:00 +0000</pubDate>
Facebook Likes are a powerful way to get website visitors to socially engage with your brand. There are two types of likes you can solicit with Facebook's developer code - likes for website pages and likes for your fan page. The best part is users can like both of these directly on your website without having to go anywhere else! Continue reading at <a href="http://blog.kissmetrics.com/get-more-facebook-likes/">http://blog.kissmetrics.com/get-more-facebook-likes/</a>.
<title>Want Major Media Exposure for Your Business?</title>
<pubDate>Tue, 21 Jun 2011 08:00:00 +0000</pubDate>
If you have read articles on major media outlets like New York Times, CNN, ABC News, and other similar sources, you have probably wondered what it would take to get your name or business mentioned as an authority on a particular topic. And now, you can have that chance. HARO, which stands for Help a Reporter Out, is a site that connects reporters from major publications and media outlets with industry experts. How simple is it to start getting queries from reporters? It is as simple as these three steps. Continue reading at <a href="http://www.futuresimple.com/blog/want-major-media-exposure-for-your-business/">http://www.futuresimple.com/blog/want-major-media-exposure-for-your-business/</a>.
The following are breakdowns of what portions you would need to change for your custom feed.
The Channel Information
The channel begins with the <channel> tag and includes the following information.
- Title – this is your custom RSS feed’s title that show up if someone subscribes directly to it.
- Atom Link – this is the direct link to your XML once it is uploaded to your server.
- Link – this is the link to the website you have uploaded it to.
- Description – this is a short description of the content of your custom feed.
- Last Build Date – this is to be updated when you update new items to your custom feed.
The Post Information
Your posts are going to be enclosed in <item> </item> tags and contain the following elements.
- Title – this is your post title.
- Link – this is the direct link to the post.
- Comments – this is the link to the comments for the post.
- Pubdate – this is when the post was published. You don’t have to be exact with this – I usually just change the day of the week, month, and date as I rarely have more than one new post go live during the day. Your newest posts should be at the top and oldest at the bottom.
- DC Creator – this is the author field and should be your name.
- Category – this is the category of your post.
- Guid – this is the permalink to your post. Generally you can find this by going to your post on the site (assuming they use WordPress or a similar CMS) and finding the <link rel=’shortlink’ href=’http://domain.com/?p=4461′ />. Otherwise, you can go to the blog’s RSS feed, view the source, and find the <guid>. Worst case scenario, you can you just put the same link as you put in the link portion. Using the shortlink should ensure that if the title or URL change, your feed will still be able to find it.
- Description – this is the description for your post. I tend to just use the first paragraph or a short paragraph as the goal is to get people to go to the main site to read the content. Creating the full feed can be time consuming.
Saving and Uploading
Before you save your custom feed, be sure it is set to use UTF-8 encoding. This is how that will look in Notepad ++.
I saved my file as freelancewriting.xml.
The next part may be different for some of you if the only domain you have is your blog.
I uploaded my custom feed to my Freelance Writing Portfolio domain since it does not have an active blog feed to compete with. As a matter of fact, since that site doesn’t have a blog but is running on WordPress, I burned the feed to Feedburner and changed it to point to this feed as the site’s primary feed by changing the following code in the site’s header.php tempate:
<link rel="alternate" type="application/rss+xml" title=" RSS Feed" href="http://feeds.feedburner.com/khfreelance" />
<link rel="alternate" type="application/atom+xml" title=" Atom Feed" href="http://feeds.feedburner.com/khfreelance" />
This way, if someone should want to subscribe to my guest posts, they can.
If you don’t have another domain, I would suggest placing it in a folder on your root domain not named feed. Maybe use folders like myguestposts or mywriting, assuming those aren’t categories on your blog either. Also, be sure your file name does not include the word feed (and especially not feed.xml) as that and or a folder named feed might compete with your main blog’s feed. You can still get to it and burn it to Feedburner using the direct URL such as http://yourdomain.com/myguestposts/guestposts.xml.
The Custom Feed Results
Once your feed is complete, you can subscribe to it in Google Reader or another feed reader to see the results. Mine looks like this:
I’m still working on the spacing for the paragraphs, but for the most part, it gets the job done. Plus, since I use the PostRank Chrome Extension for Google Reader, I can get a quick look at how my guest posts are doing in the social engagement area.
Troubleshooting Your Feed
If you have any issues with your feed, try out W3C Feed Validation. It will usually be able to spot the problem and give you a link for more information on how to correct it. My feed doesn’t validate perfectly, but it still works everywhere I need it to so far.
Where I Use My Custom Feed
Since I just created this little beauty last week, I haven’t fully taken advantage of it, but I have started using it in the following places.
The WordPress app is a great way to display your latest posts, or in this case, my latest guest posts.
Just one of the many reasons I think LinkedIn is a great social network for bloggers!
On CommentLuv Blogs
When I comment on CommentLuv blogs, I can use http://kristihines.com/ as my URL and it will pull the latest posts from that custom feed into the CommentLuv dropdown. You can also just use the direct link to your custom RSS in the URL field and just switch it before you hit the submit button to your blog link to get your name linked to your blog and your CommentLuv link to your latest guest post (one of many tricks shared in the The Ultimate Guide to Blog Post Promotion).
Are you on Triberr? Assuming that you aren’t going to bombard your tribe members with more than one post a day, you could add your custom feed link in addition to your blog link in your Account > Settings > RSS Feeds. Since my guest posts are in line with my main blog posts, they fit well with the same audience as my tribe’s following.
On Your Blog
Want to display your guest posts in a page on your blog? You can use the RSSImport plugin for WordPress (or widgets that import an RSS feed) and add it to your page using the shortcode [RSSImport display=”5″ feedurl=”http://yourdomain.com/myguestposts/guestposts.xml”].
You can see how I used this on my Archives page under Latest Guest Posts.
Anywhere That Accepts RSS Feeds
Again, the above are only a few of many, many options. Where ever you can add an RSS feed, from Twitterfeed to social profiles, you can add this custom feed to display your writing from multiple sites! I have mine just to include my guest posts, but you could also include your own posts, or just your favorite posts from your own blog in the mix as a showcase of your top writing!
Your Use of RSS Feeds
Know of a simpler way to get the job done? Do you already utilize a custom RSS feed? Please share your thoughts and strategies in the comments!