Wordpress hacks you can actually use

25 September

Wordpress hacks you can actually use

Lately I have been on this wordpress theme kick. I have created a couple of new themes currently in the process of being added to the wordpress themes section. And since I never really worked with wordpress too much, I spent some time looking at "how to's" and other peoples theme development. Some I found great, some I didn't. All in All the power of wordpress is amazing and with that being said, I decided to put a little list together. A small roundup of some hacks and enhancements that I found useful and hopefully you do too.

Adding Author Avatar to posts

the '55' is basically the width. So you can change that to what you want according to your design.

Adding User Comment Avatars

the '40' is basically the width. So you can change that to what you want according to your design.

Highlight Admin Comments

Replace this:

&lt;li id="comment-"&gt;</li>

For this:

&lt;li class=&quot;user_id == 1) $oddcomment = "authorCommentBox"; echo $oddcomment; ?&gt;"&gt;</li>


.authorCommentBox{ background-color: #ecf584 !important; }

Simple Social Network Links

Had some issues with the title of the post including


and such, so wrote something quick to handle that Plus creating a bit.ly URL on the Fly for the post:

/* usage */
//$short = make_bitly_url('http://yoursite.com','USERNAME','API-KEY','json');
//echo 'The short URL is:  '.$short;
// returns:  http://bit.ly/11Owun

Add This:

&lt;a href=&quot;http://twitter.com/home?status=@that_agency  "&gt;Twitter</a>
&lt;a href=&quot;http://www.facebook.com/sharer.php?u=&amp;t="&gt;Facebook</a>
&lt;a href=&quot;http://delicious.com/save?url=&amp;title="&gt;de.licio.us</a>
&lt;a href=&quot;http://digg.com/submit?phase=2&amp;url=&amp;title=" rel="external"&gt;Digg</a>
&lt;a href=&quot;http://stumbleupon.com/submit?url=" rel="external" title="StumbleUpon"&gt;StumbleUpon</a>
&lt;a href=&quot;http://technorati.com/faves?add=" rel="external" title="Technorati"&gt;Technorati</a>
&lt;a href=&quot;http://scriptandstyle.com/submit?url=&amp;title="&gt;Script&amp;Style</a>

Using Normal Quotes Instead of Curly Quotes

Add this to your functions.php (If you don't have one, then create one.)

Display Feedburner Subscriber Count

via (wprecipes)

	echo $rsscount;

As you can see, wordpress offers a wide variety of integration to customize your own theme. This list is just the tip of the iceberg. There are so many other things, that wordpress is able to do.

Do you know of any more? Let me know.

TAGS: Web Development