Code: How to Display Recent Posts in WordPress

Although most current WordPress installations include a widget for displaying recent posts, there are quite a few people that prefer to get their hands dirty and manually code things.   If you’d like to learn how to display recent posts in WordPress, you’ve come to the right place!

Here is the code you’ll need to display recent posts.  Simply copy the following code and place it in your sidebar.php file where you want the recent posts to be displayed! [Read more...]

Code: Add a “Tweet This” Button

Twitter has taken the blogosphere by storm over the past year, causing many bloggers to look for ways to leverage additional traffic from others who use Twitter.     One of the best ways we’ve found to accomplish this is to add a “tweet this” link below your blog’s posts as a reminder to your readers to share what they just read with others!

If you’d like to add a “tweet this” button to your blog, it is extremely easy!   Here is the code you’ll want to use:  [Read more...]

Code: Add an “Email This” Button

When building a blog that offers a lot of useful content and resources (rather than opinion), we strongly recommend blogs offer an easy way for readers/users to email your content to their friends and family.

If you’d like to do this on your blog, this is actually pretty easy!   The following code is designed to allow readers to click on the button and have it open up their default email software. It wil even create a subject and link that points to the post the reader is currently visiting!   Here is the javascript code you will need: [Read more...]

Code: Add A “Print This” Button

Want to make it easy for your readers to be able to print your blog’s content?    Adding a “Print This” button below your blog’s posts can serve as a great visual cue to readers to remind them to print your content.

If you’d like to add something like this to your blog, first you’ll want to make sure your blog’s theme has a print stylesheet loaded, then simply add the following bit of Javascript code where you want your print button to be: [Read more...]