Posts Tagged ‘hack’
How to add Related Posts with (or without) Thumbnails to your WP Blog
July 20, 2009 by Emily
Tutorials
Adding related posts to your blog is a great way to help your readers find other posts on your site that interest them. And if you have ads, increasing the number of pageviews on your blog can turn out to be quite lucrative. I recently had a request from a client to use a certain widget that she had seen on many other blogs that adds a list of recent posts along with a thumbnail image from that post. But after looking at the widget and researching the many other plugins that are available to add this functionality, I decided I wanted to find a way to code it directly into the template.
One reason for this is that the more plugins installed on a blog, the more that can slow down the loading time of that blog. If you can hard-code a function into the template, it’s almost always preferable to using a plugin. Plus many of the plugins or widgets I looked at gave very little control over things like styling or where the list appears in the template or even how they even figured out what was “related”. What if you want them to be related by tag instead of category or vice versa? What if you just want other posts by the same author?
After doing some more googling and modifying some of the code I found I figured out how to do everything I wanted to and more. My client was extremely pleased with the results and was amazed that I’d even been able to implement it without using a plugin or the widget she had originally wanted:
“It IS cool! A zillion people are going to see it now and want it on their WP blogs! Thanks!”
Which leads us to this post. I thought I would share my findings so that you can implement the same feature on your own WordPress blog. Below I will show you how to add related posts by category, tag or author. I will preface this by saying you should probably have some very basic knowledge about how to edit a template in WordPress, but for the most part, you can copy the code directly and paste it into your template. That’s it. For people with more advanced knowledge I’ll point out things that you can edit further and customize to your liking.
Adding ShareThis plugin to Advanced Typepad Templates
May 6, 2008 by Leslie
Tutorials
After looking for some answers and being very unsatisfied with the amount of information out there, I decided to share this.
What you need
1. You’ll need advanced template access in Typepad.
2. A Share This script for your registered blog.
3. Some HTML knowledge.
Basics
The Typepad foundation uses Moveable Type tags. You’ll see a tag called < MT Entries > that surrounds your posts. These tags are what list the posts on the page. There is an tag to close the post area. You’ll need to use these tags to place the ShareThis script in each post.
If you look in your Main Index Advanced Template, you will see a tag < $MTWeblogIncludeModule module=”entry-list-sticky”$ >. This is where your < MT Entries > ……. < /MT Entries > tag actually lives on the front page. In other pages (Individual, Date Archive, etc) we’ll be modifying a similar, but slightly different, entry list module. So it’s not going to be as obvious about where to place the script. We’ll need to do a teeny tiny hack to get it to display at each post.
WP Admin Area Options
April 21, 2008 by Emily
Around the Web,Downloads
If you’ve already upgraded to WordPress 2.5, then you know that 2.5 brings a BIG change to the admin area. Automattic worked with a team from Happy Cog Studios to redesign the admin area for greater ease and usability. However, while this improvement may help users new to WordPress, people used to the old admin area may be having some issues acclimating to the new interface. In fact some “power users” downright hate it. While that’s a perfectly valid point of view, I consider myself a power user, and I actually really like the new interface. That’s not to say I love everything about it, though.
The great thing about WordPress and it’s big, wonderful community is that if there is something you are dissatisfied with, there’s probably someone else out there just like you. Unlike you, they may know how to write a plugin or a hack to fix it. In the past few weeks I’ve come across several of these fixes and I thought I’d highlight them.

















