Ever come across a blog with a really cool individual post footer section called “What’s Next” and wonder how it was created? It’s not a WordPress plugin or a Blogger widget (at least not yet) and you’ll find it on blogs such as this one, Blogger Buster, and ProBlogger, just to name a few. I’m not sure who came up with original idea but it’s becoming more and more popular even with competing free plugins like ShareThis or AddThis.
Good question since many of you probably don’t even know what the heck I’m talking about. It’s essentially a collection of social bookmark links (StumbleUpon, Digg, and del.icio.us), a link to add a comment, and a link to subscribe to your RSS feed. You’ll notice it on every single article and template download on this site at the bottom of the entry. Here’s a screenshot of what it currently looks like:

I personally like it much better than ShareThis or AddThis because it’s more flexible and not every blog is using it (yet). I’m sure more people would add it to their blog as well if they knew how to do it. That’s why you’re reading this article, right?
So, since I’ve recently been asked how I’ve created it on this site so I wanted to share with everyone how to implement it for both Blogger and WordPress.
It’s actually pretty straight forward once you’ve got the code since the code is what takes time to figure out. I just reverse engineered it based on how sites like StumbleUpon, Digg, and del.icio.us assemble their urls for submission. Here’s the code that needs to be pasted into your single.php WordPress theme file after the loop. Make sure you replace the “YOUR FEED URL HERE” with your Feedburner id.
<ul class='actions'> <h3>What's Next?</h3><li><a class="digg" href="http://digg.com/submit?phase=2&url=<?php echo get_permalink() ?>&title=<?php the_title(); ?>” target=’_blank’>Digg it</a></li> <li><a class=”stumble” href=”http://www.stumbleupon.com/submit?url=<?php echo get_permalink() ?>&title=<?php the_title(); ?>” target=’_blank’>Stumble it</a></li> <li><a class=”delicious” href=”http://del.icio.us/post?url=<?php echo get_permalink() ?>&title=<?php the_title(); ?>” target=’_blank’> Save This Page</a></li> <li><a class=”comment” href=”<?php echo get_permalink() ?>#leave-comment”>Leave a comment</a></li> <li><a class=”subscribemini” href=”http://feeds.feedburner.com/YOUR-FEED-URL-HERE“>Subscribe to My Blog</a></li></ul>
Now the second bit of code you’ll need is for your style.css file. In order to get the icon images to work, you’ll need to copy them onto your own server and modify the image path and name(s) if necessary. You’ll probably also need to style and position the “What’s Next” section depending on your blog layout. You can view the source code of this post and see how I’m doing it here for reference.
ul.actions { float:left;margin:0pt;text-align:left;width:100%; }
a.digg {background:transparent url(images/digg.gif) no-repeat scroll 0pt;padding-left:20px;}
a.stumble {background:transparent url(images/su.png) no-repeat scroll 0pt;padding-left:20px;}
a.delicious {background:transparent url(images/delicious.gif) no-repeat scroll 0pt;padding:2px 0pt 2px 20px;}
a.subscribemini {background:transparent url(images/rss.png) no-repeat scroll 0pt;padding-left:20px;}
a.comment {background:transparent url(images/comment.gif) no-repeat scroll 0pt;padding-left:20px;}
You can download the images from here. Do not link directly to these images as they might be pulled down at any time. Copy them to your own server wherever your WordPress installation is running and link to them there.
(right click on each image and “save as”)
Ok, now you should have all the code and assets to make it work. Try loading up your blog (turn off your wp-cache plugin if you’re running it just to test this) and see if it works. Mouse over each url and make sure it’s dynamically populating your url and post title. Next, click on each one to see if it’s passing everything over to each site correctly. It should be working fine if you didn’t tweak the code or paste it in the wrong place. If your icons aren’t showing up, make sure you’ve copied them into the correct folder and the image path in your style.css file is correct.
The Blogger installation process is pretty straight forward as well. If you read the WordPress install guide above then you’re one step ahead of the game. It’s the same exact method except you don’t have to host the images somewhere unless you’re more comfortable doing so.
Here’s the code you need to copy and paste below the <data:post.body/> tag within your Blogger template code. Each Blogger template is setup differently so the exact location of that tag will vary based on the template you’re using. I advise you to backup your template prior to making any changes just in case you need to revert back later. Make sure you replace the “YOUR FEED URL HERE” with your Feedburner id. If you don’t have a Feedburner account yet, I highly recommend you set one up. You can read the How To Setup Feedburner on Blogger article for step-by-step instructions.
<ul class='actions'><h3>What's Next?</h3><li><a class='digg' expr:href='"http://digg.com/submit?phase=2&url=" + data:post.url + "&title=" + data:post.title + ""' target='_blank'>Digg It</a></li> <li><a class='stumbleupon' expr:href='"http://www.stumbleupon.com/submit?url=" + data:post.url + "&title=" + data:post.title' target='_blank'>Stumble It!</a></li> <li><a class='delicious' expr:href='"http://del.icio.us/post?url=" + data:post.url + "&title=" + data:post.title' target='_blank'>Save This Page</a></li> <li><a class='comment' expr:href='data:post.addCommentUrl' expr:onclick='data:post.addCommentOnclick' target='_blank'>Leave a Comment</a></li> <li><a class='subscribemini' href="http://feeds.feedburner.com/YOUR-FEED-URL-HERE" target='_blank'>Subscribe to My Blog</a></li></ul>
Now the second bit of code you’ll need is for your style.css file. You’ll probably also need to style and position the “What’s Next” section depending on your blog layout. You can view the source code of this post and see how I’m doing it here for reference.
ul.actions { float:left;margin:0pt;text-align:left;width:100%; }
a.digg {background:transparent url(http://s254.photobucket.com/albums/hh92/eblogtemplates/whatsnew/digg.gif) no-repeat scroll 0pt;padding-left:20px;}a.stumble {background:transparent url(http://s254.photobucket.com/albums/hh92/eblogtemplates/whatsnew/su.png) no-repeat scroll 0pt;padding-left:20px;}
a.delicious {background:transparent url(http://s254.photobucket.com/albums/hh92/eblogtemplates/whatsnew/delicious.gif) no-repeat scroll 0pt;padding:2px 0pt 2px 20px;}
a.subscribemini {background:transparent url(http://s254.photobucket.com/albums/hh92/eblogtemplates/whatsnew/rss.png) no-repeat scroll 0pt;padding-left:20px;}
a.comment {background:transparent url(http://s254.photobucket.com/albums/hh92/eblogtemplates/whatsnew/comment.gif) no-repeat scroll 0pt;padding-left:20px;}
If you want to download the images to your own server, go ahead (see image links above) otherwise the .css code has the direct links to the images and will work once you paste it in. You’ll want to paste this .css code in the top of your template where the other .css code is.
Save your template and make sure you get no errors. If you do, you probably didn’t copy the code over correctly or have an extra tag somewhere.
Your final “What’s Next” post footer section should end up looking like this. Results may vary of course based on your .css styling. You can see how the links work if you try my live “What’s Next” section at the bottom of this post.

If you’ve successfully installed this on your blog, please feel free to share your url so others can see how you implemented it. I don’t have a working example on Blogger so if you’re running this on your Blogspot site, please let us know.
If you like this post then please consider subscribing to our eBlog Templates RSS feed. You can also subscribe by email and have new templates and articles sent directly to your inbox.
AddThis,blogger widget,ProBlogger,ShareThis,social bookmark widget,StumbleUpon,what's next,WordPress,wordpress plugin
11 Responses to “How to Create a “What’s Next” Post Footer Section”
8:44 pm on February 23rd, 2008 (subscribed to comments)
I used the del.icio.us one, I simply copied the code over to my template file and modified it to my liking. I added rel=”nofollow” to the link as well.
8:55 pm on February 24th, 2008 (subscribed to comments)
Glad to hear it Eli. Good idea to add the nofollow tag as well. Thanks for your comment!
11:04 pm on February 25th, 2008 (subscribed to comments)
just inform you david, for blogger user, the title & url must be added delimiter (;) otherwise blogger refuse our code and say it not wellformed.
i’m trying to put it below blogpost as inline menu. but when preview clicked, i got error blogger page. stil find out why, since my code is wellformed.
4:12 am on February 26th, 2008 (subscribed to comments)
Thanks for the comment Tukang. Usually the quotes aren’t copied over correctly so some people might get that error. Try replacing all quotes with a new quote and that should do it. The code worked fine for me before I posted it. Let me know how it works out.
1:31 am on February 27th, 2008 (subscribed to comments)
hi david, please applied now on my blog.
please check it and comment. tks.
11:52 am on March 25th, 2008 (subscribed to comments)
Hi David, can blogger also have that “Related articles”?
5:27 pm on April 7th, 2008 (subscribed to comments)
@David. I’m not trying to spam or anything, but I think Jack Book has it.
11:43 pm on April 10th, 2008 (subscribed to comments)
the code didnt work at all!
8:23 am on April 19th, 2008 (subscribed to comments)
lol - can you help a silly newbie? I couldn’t figure out where to add in the second code - for the style.css file?
I love how you instructed adding the first code under a specific tag. Is it possible to do the same for the second tag? Or anywhere above or below a specific tag?
I love love LOVE this feature - sure hope I can get it installed.
BTW - any possibility on adding a “Twit This” button?
12:03 pm on April 19th, 2008 (subscribed to comments)
I think ill try it. David is the above code updated with what tukang has said?
8:15 am on May 3rd, 2008 (subscribed to comments)
The solution for problem above with tukang is to replace & with &
Leave a Comment