WordPress plugins, themes, tips and hacks

Social Proof: Increase subscribers to your blog by displaying your feed stats

Thursday, June 12th, 2008

Last night I attended MashBash Tel Aviv, an intimate gathering of Mashable’s Adam Hirsch and 800 of his closest friends from the Israeli hi-tech industry. In between having fun and getting served free drinks for three hours, I managed to learn something new. I learned about “social proof.”

Social what?

I met a guy at the event who I “knew” through twitter. Harry runs a snazzy new website about Jerusalem attractions and other stuff. We were discussing the right steps to take to increase blog traffic, and how he’s managed to get really decent traffic to his site in a relatively short period of time. He mentioned one tip that I had never heard before in all my blogging years, and it struck me as so simple yet so smart.

Social Proof.

Harry said that once you have at least 50 RSS subscribers, you should display the number of subscribers on your blog to encourage others to subscribe as well. The reason is that people like to try out things that lots of other people like. Think of a restaurant or cafe - if you’re walking down a street of cafes, would you rather go into the empty cafe, or the one overflowing with patrons? When lots of people patronize something, by showing up, subscribing, or in other ways, it encourages others to join as well.

(Harry learned this tip from Yaro Starak’s Blog Mastermind Course, which actually sounds like it might be worth the investment from what he says.)

So take a look over to your right here. See that little feed reader thingy? As you can see, WordPress Garage has 781 subscribers. We’re a really cool crowd, having lots of fun. Doesn’t that make you want to subscribe too?

You can subscribe to the feed, or via email in the sidebar.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Publish RSS feeds on your WordPress site without plugins

Wednesday, February 13th, 2008

Darren Hoyt, that brilliant WordPress developer and designer, explains how you can publish RSS feed headlines on your WordPress blog with a built-in WordPress function instead of using a plugin.

As Darren says, this code snippet is not intended for scrapers; it’s for people who have more than one blog, or are part of a blogging network, and would like to have their readers exposed to their other blog material.

The necessary code is what pulls all the Planet WordPress feeds into your WordPress dashboard. Darren took that code from wp-admin/index-extra.php and rewrote it into a snippet which you can insert into your theme files:

<?php

require_once (ABSPATH . WPINC . '/rss-functions.php');

// here's where to insert the feed address

$rss = @fetch_rss('http://www.darrensmusicnews.com/feed/');

if ( isset($rss->items) && 0 != count($rss->items) ) {

?>

<ul>

<?php

// here's (5) where to set the number of headlines

$rss->items = array_slice($rss->items, 0, 5);

foreach ($rss->items as $item ) {

?>

<li>

<a href='<?php echo wp_filter_kses($item['link']); ?>’>

<?php echo wp_specialchars($item['title']); ?>

</a>

</li>

<?php } ?>

</ul>

<?php } ?>

Obviously, you have to change the feed address on the fourth line to yours. You can also select how many items from the feed should appear.

In the comments, Darren says that you can publish multiple lists of feeds by copying the snippet with several different RSS feeds. If you want to aggregate a bunch of feeds into one single feed that you’ll republish on your blog, he recommends the Easy Blog Networking for WordPress Blogs plugin, which combines a bunch of feeds and republishes them in one list, or Yahoo Pipes.

Another Option from the WordPress Codex 

Scot Hacker brings another variation for displaying RSS feeds on a site: the WordPress function fetch_rss. On the WordPress Codex, you can see an example for displaying a list of links for an existing RSS feed, limiting the selection to the most recent 5 items:

<h2><?php _e(‘Headlines from AP News’); ?></h2>
<?php // Get RSS Feed(s)
include_once(ABSPATH WPINC ‘/rss.php’);
$rss fetch_rss(http://example.com/rss/feed/goes/here’);
$maxitems 5;
$items array_slice($rss->items0$maxitems);
?>

<ul>
<?php if (empty($items)) echo ‘<li>No items</li>’;
else
foreach ( 
$items as $item ) : ?>
<li><a href=’<?php echo $item['link']; ?>
title=’<?php echo $item['title']; ?>‘>
<?php echo $item['title']; ?>
</a></li>
<?php endforeach; ?>
</ul>

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Importing RSS feeds as posts in WordPress, and managing your twitter, facebook, tumblr and WordPress lives in one fell swoop

Monday, December 17th, 2007

I am constantly finding links that I think are not worth a whole post, but I would like to mention here anyways. So I wanted to find a quick and easy way to display short links that would become part of the blog stream, without causing clutter.

I also wanted to do this in a way that would make these links easily importable to other platforms besides WordPress, such as Twitter and in the facebook status. I figured the best way to do this would be to dedicate an RSS feed to these short bits of information. I considered using Twitter, but decided against it because it adds my Twitter name to the beginning of every feed. facebook’s status isn’t so easy to export. So I chose Tumblr.

I hadn’t visited Tumblr for a while, and was pleasantly surprised by the new additions to this already useful service. Tumblr is like Twitter in that it gives you a platform for sending out short bits of information, and they have added the option of following other Tumblr users, but the difference is that Tumblr allows you to post a wider range of types of content, such as photos, videos and audio, something Twitter doesn’t do. I guess people really like the bare-bones nature of Twitter, but I prefer Tumblr.

In any case, I got going with Tumblr and added a few posts. Then I had to find the right plugin or method for adding RSS feeds to this blog. I decided to go with WP-o-Matic.

WP-o-Matic is a bit tricky to set up, but it gives you a lot of features and options once you get it right. Here’s how you use it:

  1. Download and upload the directory under wp-content/plugins. Activate.
  2. You have to follow four steps to set it up, including choosing a name for the feed and giving it a slug. One of the steps is checking whether your server is compatible with Simple Pie. Just click on the link, and it will open up a new page that will either congratulate you for being compatible, or curse you. Just kidding, I don’t know what happens if you’re not compatible.
  3. You will have to set up a cron job. I’ve never done that before, but the plugin author has made it really easy. You are given a line of code to use. Log in to your Control Panel, and under Advanced you will see an icon called Cron jobs. Click on that, and choose Standard. Paste your code snippet into the box called Command to run, and click on Save Crontab. That should do the job.
  4. Go back to the WP-o-Matic setup and press Submit.
  5. A new menu appears under your standard WordPress menu.
  6. Once you’ve completed those four steps, you can set up your first “campaign.” This is how WP-o-Matic refers to any incoming RSS stream. So click on Add Campaign.
  7. You have five tabs at the top of the campaign: Basic, Feeds, Categories, Rewrite, and Options. You need to click on each, fill them out, and only once you’ve completed that, click Submit.
  8. Under the Basic tab, enter the Title of your Campaign. Check the box next to Active, and give it a slug if you like.
  9. Under the Feeds tab, you can enter as many feeds as you like.
  10. Under the Categories tab, select the category under which you want this Campaign to appear on your blog. If you want to create a new one, you can do it right there by clicking on Quick Add.
  11. The Rewrite tab allows you to swap words in your feed, or link specific words to a website. I’m sure that’s handy, but I ignored it.
  12. Under the Options tab, you can choose to use a custom post template, set the frequency for how often the feeds should be checked, select whether images will be cached on your server or hotlinked from the other server (choose cached if you want to be a good citizen), select whether to use the date of the original feed, or the date when the feed was imported, whether to perform pingbacks, whether the post should be published automatically or saved as Private or a Draft, the name of the author, and whether to allow comments or pings.
  13. Click Submit.

That’s it. I think I may want to suppress this category from appearing on the blog home page, and have it only appear in its own section in the sidebar. I also think I’ll set the feed to automatically be saved as a draft so that I can add tags and other stuff to each tidbit for easier sorting and finding later.

Now I can use twitterfeed to have my Tumblr posts automatically published by my Twitter account. And the Twitter facebook app imports my tweets into my facebook status. Social media happiness! (Or ridiculousness, depending on how you look at it.)

I’d really like to hear what you think, and if you have any other ways for importing RSS feeds into your WordPress blog, whether as posts or in the sidebar. I suspect there is an easier way since sploggers are doing this kind of thing all the time.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

RSS feed mashup services - easy and free

Sunday, September 16th, 2007

Once you’re writing and/or managing a bunch of sites or blogs, you may find that it would be useful to mash all your feeds together into one feed that displays posts from all of your sites in chronological order. For example, you may want to have each site display all the new posts from your other sites. Or, as in my case, I wanted to easily have all my new posts appear as Notes in facebook (yes, we’re back to facebook again).

Previously, I reviewed the different ways you can integrate your WordPress blog with facebook and vice versa. There are plugins that allow you to display every site in its own “box” on facebook, but that has a few disadvantages, namely it clutters your facebook profile, your “friends” may not receive notifications of any updates to those boxes (I’m not sure about this), and it means installing yet more plugins.

I explained how to get facebook Notes to display an RSS feed, but the disadvantage there is that you are limited to one feed. So I decided I would try to “mash” up all my feeds and create one monster feed that would create a new Note with every new post.

My criteria for a RSS feed mashing service were as follows:

  • free (of course)
  • pretty easy
  • good results

Isn’t that what we’re always looking for?

Anyways, I did a quick search and tried out two services that met my criteria: KickRSS, and RSS Mixer. Here are the results:

  KickRSS RSS Mixer
Site design Really nerdy ala 1995 Really web 2.0 cool with gradients and all
Favicon Yes No!
Need to login? Yes No
Easy to add feeds Yes - but a little sticky. Each feed was only recognized on the second try Yes
Good results? Yes Yes
Extra options Code snippet that you can embed in your site to enable searches of your new feed. That could be really coolCan order the feed by Date/time of article, or Date article was retrieved

Can import and export OPML feeds

New feed can easily be used as Apple Dashboard Widget, iPhone version, a Web Widget that you can embed in a site (I didn’t test how it looks, but you could embed an RSS feed in your site with the right plugins too - we’ll get to that in a future post), or regular RSS feed.

Disadvantages to these mixed feeds:

  • Can’t brand them with your own logos or colors.
  • Can’t track the number of subscribers with FeedBurner since you can’t burn or redirect these feeds (at least not easily).
  • It’s not a full-text feed - only excerpts.
  • All images, videos, etc. - anything that is not pure text - is stripped.

You may ask - why didn’t you use sleek and simple Yahoo Pipes? Well, I ain’t no tech-dummy, and I can’t for the life of me figure out where to put what and how to put it in Yahoo Pipes. Pipes is simple for nuclear physicists and Linux users, and I am neither.

I tried importing both feeds in facebook, and the results were the same so I decided to go with KickRSS for no good reason whatsoever. If it stops working, I’ll let you know, but in the meantime, all my facebook friends can now enjoy every single new post added to all of my sites - lucky them!

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Adding comments, related posts and copyright notice to RSS feed

Monday, September 3rd, 2007

I’ve seen people mention that a good way to prevent feed scrapers from doing so is by adding a copyright to the feed, but I never really understood why that would help.

But then I met someone who was building up his community site, and he asked if he could publish the feed of one of my sites on his site. I said fine, since I didn’t really see any difference between someone reading my feed there or in their feed reader. However, it made me uncomfortable that he would be getting good material (well, hopefully it’s good) with little to no effort.

So I decided to try to make this work to my advantage as much as possible by extending my feed with additives that I hoped would gain exposure for my site, and even drive feed readers there.

To do so, i used the WP - ©Feed plugin. Upload and activate, and then go to Options > ©Feed. The options there are a little confusing, since it’s translated from German and the English isn’t always so clear, so I had to play around with a it a bit. Here’s how I got it to work the way I wanted:

  1. In the Start of copyright notice field, enter whatever it is that you want to appear at the end of every post feed. This could be more than just a copyright notice - it could also be a call to action, an ad, etc. I put in code like this:<hr /><small>Copyright © 2007 <a href="http://mysite.com">MySite.</a><br />Did you like this post? Visit <a href="http://mysite.com">MySite</a> for more like it!
  2. digital fingerprint - I have no idea what this is for, so I left it blank.
  3. End of copyright notice: I entered the following code:
    </small>
  4. Then you have four options, which I left unchecked.
  5. Whitelist: again, no idea what this is for, so I left it blank.
  6. Blacklist: ditto.
  7. Select Comments in feed to have any comments appear at the end of the post.
  8. Before the comments - I put in this code:
    <hr /><h2>Comments</h2><ul>
  9. Layout of the comments:
    <li><a href="%permalink%">%date%</a>, %authorlink% Commenter: %comment%</li>
  10. After the comments:
    </ul>
  11. If you use the Simple Tagging plugin, as I do, leave “Insert similar content in feed?” unchecked. If you don’t use Simple Tagging, select this option.
  12. Number of items with similar content - enter how many related items you want to appear. I entered 5.
  13. Identify posts with password - I left this unchecked.
  14. Add abstract of posts - I left this unchecked, since I have a full-text feed, and this didn’t sound like something I want.
  15. Number of words - I think this is not relevant if you don’t select Add abstract of posts in step 14.
  16. Before items with similar content:
    <hr /><h2>Related Posts:</h2><ul>
  17. Before the titles of items with similar content:
    <li>
  18. After the titles of items with similar content:
    </li>
  19. After the items with similar content:
    </ul>
  20. Simple Tagging Related Post in feed? - select this if you use the Simple Tagging plugin.
  21. Full text feed? I left this unchecked, since I use a plugin that ensures a full text feed, even when I use the <!--more--> tag. But I guess I could theoretically deactivate the plugin and just check this option.
  22. I skipped the rest of the options since I don’t know what they’re for, and clicked on Update Options.

That’s it! Now I have a beautiful feed that works hard for me wherever it may go!

©Feed»

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Fetching and displaying RSS feeds on your site

Thursday, July 5th, 2007

I’ve been looking high and low for a simple and working solution for displaying a feed in my site. If your site is widget-enabled, you can easily display another feed with the RSS widget. But if you are not widget-enabled, or you want to put your feed somewhere else, you are stuck.  I tried a whole bunch of plugins, and finally ended up using FeedBurner’s BuzzBoost feature (under the Publicize tab when you are logged in), which is nice but puts a little “Headlines by FeedBurner” tagline at the bottom, which you might not want to appear in the middle of your page.

And then a revelation - Blue Anvil explains how WordPress has RSS fetching capabilities built in. You can call an RSS feed with one of two functions:

  1. fetch_rss
  2. wp_rss

See Blue Anvil’s explanation of how these functions work>>
See the WordPress codex entries on wp_rss and fetch rss>>

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Aizatto’s Related Posts Plugin

Sunday, April 22nd, 2007

Most WordPress users are familiar with the WASABI Related Entries plugin. I’ve never used it because it involves messing around with the database tables. Instead, I have been using the Simple Tagging feature of displaying related posts based on tags used in the posts.

I recently discovered a new related posts plugin which seems easier to use, and I plan to try it out in one of my next sites - Aizatto’s Related Posts Plugin. WordPress by Examples gives a detailed description (more detailed than on the plugin developer’s site) of this plugin’s features:

  • No messing with database tables: this plugin does the database stuff automatically
  • You don’t have to modify your template files - the related posts appear at the end of every post.
  • The related posts also appear in the RSS feed - that is pretty cool!
  • You can customize the appearance of the related posts.

Aizatto’s Related Posts Plugin>>

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Another way to add RSS feeds to your WordPress blog

Thursday, April 12th, 2007

Shaolin Tiger explains how to use the WordPress Feedlist Plugin to display RSS feeds from other sites on your blog.

How to use RSS Feeds on your Wordpress Site>>

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Replace WordPress default dashboard with custom feeds

Thursday, April 12th, 2007

I never really look at the main page of my WordPress admin section. It is full of all sorts of stuff that I didn’t ask to see, so I just ignore it. But why not put information there that you are interested in, or that helps you with your blogging?

Previously I posted about the WordPress Dashboard Editor: a plugin that allows you to add whatever you want to the Dashboard through PHP and HTML. KQF is another plugin that allows you replace the dashboard with custom feeds that you specify. You can also customize the look and behavior of feeds, and has a polling feature that will check for feed freshness at predetermined intervals.

I have just one question: why is this plugin called KQF?

KQF>> 

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Share your Shared items from Google Reader in your blog

Thursday, April 12th, 2007

A little while ago one of the commenters here asked if I knew how to display shared items from Google Reader in a blog, such as in the sidebar. David Paul Robinson explains how to put a “clip” on your blog that contains your shared items. You could probably also use one of WordPress’ feed widgets or plugins to display your Shared items RSS feed on  your site.
Using Google Reader For Your Link Blog>>

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]
Premium News Themes