• Please take a moment and tell us about your project, or give us a call at (888) 873-3281.
  • Write a short description of your business and services required

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:

<li id="comment-">

For this:

<li class="user_id == 1) $oddcomment = "authorCommentBox"; echo $oddcomment; ?>">

CSS:

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

Simple Social Network Links

Had some issues with the title of the post including

%20

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

results->nodeKeyVal->hash;
	}
}
/* 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:

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

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)

feed->entry['circulation'];
	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.

Profile-Ronald-Busky

Ronald Busky  Ron's ability to express our client's message in a way that drives results is remarkable. We are firm believers in ROI, and it starts with the first paragraph! Ron's robust style and diverse portfolio has allowed him to write for clients ranging from car dealers to luxury hotels.

3 Comments

  1. Sarah

    Reply

    I’m about to create my first WP theme and this was very helpful. Thanks!

  2. amir

    Reply

    very useful tips. thanks for posting rich. I’m trying a couple of these hacks out tomorrow :)

  3. nyu film school

    Reply

    Great articles, this is undoubtedly a great resource for all of us WordPress blog end users! All of the fantastic totally free as well as premium themes ensure it is super easy to give full attention to creating a good blog along with great information.

Leave a Comment

Your email address will never be published or shared. Required fields are marked with an asterisk (*).