You can find the some of the best Wordpress Tricks to Make your theme even better here. For further tricks you can see the original post here. I have found some of the tricks are better so they are listing below for you:
How to Disable Commenting on Posts Older Than 1 Month
A great way to reduce the amount of spam you receive is to disable the ability to comment on posts that are more than 1 month old. Just paste the following in your functions.php file. Note: To change the amount of time from 1 month, just replace 30 (days) with any number of days you want.
<?phpfunction close_comments( $posts ) { if ( !is_single() ) { return $posts; } if ( time() - strtotime( $posts[0]->post_date_gmt ) > ( 30 * 24 * 60 * 60 ) ) { $posts[0]->comment_status = 'closed'; $posts[0]->ping_status = 'closed'; } return $posts;}add_filter( 'the_posts', 'close_comments' );?>
How to Display a List of Allowed HTML Tags for Use in Comments
Ever been to a blog where you’ve seen a list of all of the allowed HTML tags right above the comment form? Ever wonder how to do that in Wordpress? Well, wonder no more.
You may use: <?php echo allowed_tags(); ?>.
How to Display the Total Number of Posts on Your Blog
A useful code snippet that displays how many posts you’ve made.
<?php $numposts = $wpdb->get_var("SELECT count(*) FROM $wpdb->posts WHERE post_status = 'publish' AND post_type = 'post'");if (0 < $numposts) $numposts = number_format($numposts);echo $numposts.' posts.';?>
How to Add a Simple "Tweet This" Link to Each Post
Twitter is getting more and more popular each day. To make this benefit you, why not add a nice little "Tweet This" button to each blog post? Put this somewhere in The Loop in single.php.
<a href="http://twitter.com/home?status=I just read <?php the_permalink(); ?>" title="Send this page to Twitter!" target="_blank">Tweet This!</a>
How to Separate Trackbacks / Pingbacks and Actual Comments
The comment area of your posts should be a place where your readers can talk and discuss things with you and eachother. It’s annoying if this discussion is interrupted by a few trackback announcements. Tidy up the comment area by putting the comments in one pile and the trackbacks in another.
<?php if ( $comments ) : ?><?php foreach ($comments as $comment) : ?><?php $comment_type = get_comment_type(); ?><?php if($comment_type == 'comment') { ?>
<!-- It's a comment --><!-- Comment content goes here -->
<?php } else { $trackback = true; }?> <?php endforeach; ?><?php if ($trackback == true) { ?>
<!-- It's a trackback --> <ol id="trackbacks-ol"> <?php foreach ($comments as $comment) : ?> <?php $comment_type = get_comment_type(); ?> <?php if($comment_type != 'comment') { ?> <li> <?php comment_author_link() ?> </li> <?php } ?> <?php endforeach; ?> </ol>
<?php } ?><?php else : ?><?php endif; ?>

RSS Feeds
Feed Comment 




hey this is a very interesting article!