22 Latest Exceptional WordPress Hacks

WordPress needs no introduction among designers and writers. It’s usually known as a synonym for blogging. Now days every other WordPress blogs look more or less similar, to stand uniquely out from the rest, you need to tweak it a little bit by using quality hacks.

As you all known that the new version v2.8 is arrived and most of you already updated your WordPress to v2.8. So, now there is a need of new working hacks which is compatible with latest version.

Of Course, WordPress Codex is always the best place to learn about WordPress and its tweaks. But unfortunately, it’s too much for a simple WordPress user. This the only reason we compiled this fairly comprehensive list of the Exceptional WordPress Hacks to unleash the power of your favorite blogging engine.

One of the greatest things about blogging is the immediate feedback a blogger can get from his or her readers. Still it’s often possible that your readers don’t give you a wink about their likes and dislikes. Unfortunately, there is no way for you to find out about visitors thinking towards your blog or its design. It’s always essential to play safe and give others what they like. Out of many solutions the inspirational one is only promising and optimistic way to achieve desired changes. This article focuses on organized collection of some of the Most Wanted WordPress Hacks which will definitely make your blogging life easier.

You may be interested in the following related articles as well.

Feel free to join us and you are always welcome to share your thoughts that our readers may find helpful.

Don’t forget to subscribe to our RSS-feed and follow us on Twitter — for recent updates.

General WordPress Related Hacks

01. How to Speed Up Your Blog’s Loading Speed

instantShift - Exceptional WordPress Hacks

WordPress, by default, comes uncompressed and sends the uncompressed HTML to the visitor’s browser. With one line of code added to your header, you can compress WordPress’s output by up to 75%. By using zlib compression technology, you can harness the power of PHP and reduce your blog’s load time and increase the load speed!

First, place the following code in a file and call it “test.php” and then upload it to the root of your blog directory:

<?php phpinfo(); ?>

Make sure that “zlib” is enabled by your hosting provider.

Second, place the following code in your header (above the DOCTYPE):

<?php
  ini_set('zlib.output_compression', 'On');
  ini_set('zlib.output_compression_level', '1');
?>

You’re done! Check Port80Software.com to ensure you are compressing your output.

Source Link

02. Allow More Time For Slow Servers to Upgrade WordPress

instantShift - Exceptional WordPress Hacks

WordPress auto download/install is a very nice feature, but sometimes a few problems can appear. One of them is that WordPress don’t manage to download the new version. This happens on slow servers. Here is how to solve it.

To apply this hack, you’ll have to edit one of WordPress core files. Keep in mind that it is never recommended. This hack should be applied only if you have problems while auto-upgrading WordPress.

Open the wp-admin/includes/files.php file and go to line 448. You’ll see the following:

$response = ks29so_remote_get($url, array('timeout' => 60));

To allow more downloading time, simply change the 60 with a greater value, as for example:

$response = ks29so_remote_get($url, array('timeout' => 120));

it’s all done!!

Source Link

 

Pages Related Hacks

03. How to Get All Custom Fields From a Page or a Post

instantShift - Exceptional WordPress Hacks

Sometimes you may need to get all custom fields from a specific post or page. Apply following function that do the job.

function all_my_customs($id = 0){
  //if we want to run this function on a page of our choosing them the next section is skipped.
  //if not it grabs the ID of the current page and uses it from now on.
  if ($id == 0) :
    global $ks29so_query;
    $content_array = $ks29so_query->get_queried_object();
    $id = $content_array->ID;
  endif;   

  //knocks the first 3 elements off the array as they are WP entries and i dont want them.
  $first_array = array_slice(get_post_custom_keys($id), 3);

  //first loop puts everything into an array, but its badly composed
  foreach ($first_array as $key => $value) :
    $second_array[$value] =  get_post_meta($id, $value, FALSE);

    //so the second loop puts the data into a associative array
    foreach($second_array as $second_key => $second_value) :
      $result[$second_key] = $second_value[0];
    endforeach;
  endforeach;

  //and returns the array.
  return $result;
}

Once done, you can use the function like this:

$result = all_my_customs();
echo $result['my_meta_key'];

Source Link

04. How to Show Parent Page Title Regardless of What Subpage You Are On

instantShift - Exceptional WordPress Hacks

This hack is useful for peoples who working with WordPress as a CMS and wanting to be easily able to display parent page title on a subpage.

Nothing hard at all: Just paste the following code where you’d like to display the parent page title:

<?php
if($post->post_parent) {
  $parent_title = get_the_title($post->post_parent);
  echo $parent_title;
} else {
  ks29so_title('');
}
?>

That’s all! Quick and easy!!

Source Link

05. Display Guest Author Name in The Front Page and Individual Posts

instantShift - Exceptional WordPress Hacks

The first thing we need to do is to set a wordpress if statement to get the custom filed value. This way it will only show up when the custom file value is assigned. Open up your “index.php” and “single.php” and paste the following code where you want the author name to show up. It could be after date or after comments. For example after this code:

<?php the_time(’M j, Y’) ?>
<?php if ( get_post_meta($post->ID, 'guest_author_name', true) ) { ?>
// check to see if custom field guest author name exists
<?php echo get_post_meta($post->ID, "guest_author_name", $single = true); ?>
<?php } ?>

Once we put the if statement we just call it on whichever post we want the guest author name to show up. The guest author name should show up on the front page and for specified post only.

Source Link

 

Post Related Hacks

06. How to Display Content in Multiple Columns

instantShift - Exceptional WordPress Hacks

Printed magazines often display text in columns, so why blogs shouldn’t be able to do the same? here you can find out how to easily and automatically display your post content in columns.

This code is powerful but definitely easy to implement. Just paste it on your functions.php file and it will automatically output your post content in columns.
Your post content will be splitted on <h2> tags.

function my_multi_col($content){
  $columns = explode('<h2>', $content);

  $i = 0;

    foreach ($columns as $column){
    if (($i % 2) == 0){
      $return .= '<div class="content_left">' . "\n";
      if ($i > 1){
        $return .= "<h2>";
      } else{
        $return .= '<div class="content_right">' . "\n <h2>";
      }
      $return .= $column;
      $return .= '</h2></div>';
      $i++;
    }

    if(isset($columns[1])){
      $content = wpautop($return);
    }else{
      $content = wpautop($content);
    }
  echo $content;
  }
}
add_filter('the_content', 'my_multi_col');
</h2>
</div>
</h2>

Don’t forget to add the following styles to your style.css file :

.content_right, .content_left{  
  float:left;  
  width:45%;  
}  
  
.content_left{  
  padding-right:5%;  
}

Source Link

07. How to Show WordPress Post Attachments

instantShift - Exceptional WordPress Hacks

Since WordPress 2.5, attachments management in WordPress have been improved and is now very powerful. Today, we’re going to show you a simple code snippet that you can use in your WordPress theme to display post attachments.

To achieve this recipe, just paste the following code anywhere in your post.php file and attachments will be displayed.

$args = array(
  'post_type' => 'attachment',
  'numberposts' => null,
  'post_status' => null,
  'post_parent' => $post->ID
);
$attachments = get_posts($args);
if ($attachments) {
  foreach ($attachments as $attachment) {
    echo apply_filters('the_title', $attachment->post_title);
    the_attachment_link($attachment->ID, false);
  }
}

Source Link

08. How to Set Post Expiration Date/Time on Your WordPress Blog

instantShift - Exceptional WordPress Hacks

Sometimes (for example, if you’re running a contest), you want to be able to publish a post and then automatically stop displaying it after a certain date. This may seem quite hard to do but in fact is not, using the power of custom fields.

Edit your theme and replace your current WordPress loop with this “hacked” loop:

<?php
if (have_posts()) :
  while (have_posts()) : the_post(); ?>
    $expirationtime = get_post_custom_values('expiration');
    if (is_array($expirationtime)) {
      $expirestring = implode($expirationtime);
    }

    $secondsbetween = strtotime($expirestring)-time();
    if ( $secondsbetween > 0 ) {
      // For example...
      the_title();
      the_excerpt();
    }
  endwhile;
endif;
?>

To create a post set to expire at a certain date and time, just create a custom field. Specify expiration as a key and your date and time as a value (with the format mm/dd/yyyy 00:00:00). The post will not show up after the time on that stamp.

Note that this code does not remove or unpublish your post, but just prevents it from being displayed in the loop.

Source Link

09. How to Style Posts Individually

instantShift - Exceptional WordPress Hacks

Your blog has a lot of posts, but the posts aren’t all of the same type. To give special styling to one or more of your posts, you can take advantage of both the post_class() function and the post ID.

To apply this trick, just open your single.php file, find the loop and replace it with the following:

<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div <?php post_class() ?> id="post-<?php the_ID(); ?>">

 

<h3><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h3> <?php the_content(); ?> </div> <?php endwhile; else: ?> <?php _e('Sorry, no posts matched your criteria.'); ?> <?php endif; ?>

The important part is mostly in line 3. Here, we have added the PHP post_class() function. Introduced in WordPress 2.8, this function adds CSS classes to the post. For example, it can add:

  • .hentry
  • .sticky
  • .category-tutorials
  • .tag-wordpress

With these CSS classes now added, you can now give a custom style to all posts that have the sticky tag or those that belong to the tutorials category.

The other important piece of this code is id=”post-< ?php the_ID(); ?>“. By displaying the ID of the post here, we’re able to style a particular post. As an example:

#post-876{  
    background:#ccc;  
}

Source Link

10. Display Content only to Registered Users in Your WordPress Blog

instantShift - Exceptional WordPress Hacks

As you probably know, WordPress lets you decide whether to allow readers to create accounts and sign in to your blog. If you want to increase your blog’s registered readers or would just like to reward existing readers, why not keep some content private, just for them?

To achieve this hack, we’ll use a shortcode. The first step is to create it. Open your functions.php file and paste the following code:

function member_check_shortcode($atts, $content = null) {
  if (is_user_logged_in() && !is_null($content) && !is_feed()) {
    return $content;
  } else {
    return 'Sorry, this part is only available to our members. Click here to become a member!';
  }

add_shortcode('member', 'member_check_shortcode');

Once that’s done, you can add the following to your posts to create a section or text (or any other content) that will be displayed only to registered users:

[member]  
This text will be displayed only to registered users.  
[/member] 

That’s it. Registered users will see the text contained in the shortcode, while unregistered users will see a message asking them to register.

Source Link

 

Comment Page Related Hacks

11. How to Disable Comments in Old Posts via PHP

instantShift - Exceptional WordPress Hacks

In many situations like when you’re giving some alert to your readers or warning, and you don’t want to hear any feedback. Or you simply don’t want to have any comments, pingbacks, or trackbacks for respective event. For such situation you really want to know how to disable comments, pingbacks, and trackbacks via PHP in your WordPress blog.

The first step is to create it. Open your functions.php file and paste the following code:

<?php
function 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' );
?>

You can run this script as a plugin, through your theme’s functions.php, or through a custom user-functions.php file. Simply set the desired number of days by changing the number “30” to whatever you would like. As is, this script will close comments, pingbacks and trackbacks on all articles posted more than 30 days ago.

Source Link

12. How to Display Registered Users Comment Count on Your Blog

instantShift - Exceptional WordPress Hacks

If your blog is private or have lots of registered users, it may be interesting to be able to display the number of comments posted by registered users. This is the purpose of this code.

Simply paste the following code where you’d like the count to be displayed. Re-arrange the code as desired.

<?php
global $wpdb;
$where = 'WHERE comment_approved = 1 AND user_id <> 0';
$comment_counts = (array) $wpdb->get_results("
    SELECT user_id, COUNT( * ) AS total
    FROM {$wpdb->comments}
    {$where}
    GROUP BY user_id
  ", object);
foreach ( $comment_counts as $count ) {
  $user = get_userdata($count->user_id);
  echo 'User ' . $user->display_name . ' comment count is ' . $count->total . '';
}
?>

That’s it! This will get approved comment count for each registered user.

Source Link

13. Separating Trackbacks From Comments in WordPress 2.7+

instantShift - Exceptional WordPress Hacks

Separating your trackbacks and comments requires a minimal amount of coding work to set up. First, you’ll want to make a backup of your comments.php file just in case something goes wrong. Next, follow these steps:

Access your comments.php file and locate the following code:

<?php foreach ($comments as $comment) : ?>

Immediately after the above code, you’ll want to place this code:

<?php $comment_type = get_comment_type(); ?>
<?php if($comment_type == 'comment') { ?>

Next, you’ll want to scroll down a little bit and locate the following code:

<?php endforeach; /* end for each comment */ ?>

Immediately before the above code, you’ll want to place this code:

<?php } /* End of is_comment statement */ ?>

This will filter out all of the trackbacks and pingbacks from your main comments loop. Now we need to create a second comments loop to display the trackbacks and pingbacks. Now, Almost immediately below the code from last step you should find this code:

<?php else : // this is displayed if there are no comments so far ?>

Immediately before the above code, you’ll want to place this code:

 

<h3>Trackbacks</h3> <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>

Once you’ve got the comments successfully separated from the trackbacks, there are a couple additional tweaks you may want to do to clean up how things look (it really depends on preference I suppose). The first is to clean up your trackbacks/pingbacks by only displaying the title instead of an excerpt and everything else. In order to do this, you’ll need to find the following code in your comments.php file:

<ol>
<?php ks29so_list_comments('type=pings'); ?>
</ol>

Now replace that code with the following:

<ol>
<?php ks29so_list_comments('type=pings&callback=list_pings'); ?>
</ol>

Lastly, you’ll need to add the following code to your functions.php file (which can be created if you don’t already have one):

<?php
function list_pings($comment, $args, $depth) {
  $GLOBALS['comment'] = $comment;
?>
<li id="comment-<?php comment_ID(); ?>"><?php comment_author_link(); ?>
<?php } ?>
</li>

That should clean up the trackbacks/pingbacks section and you can also apply the same changes if you use a plugin to display tweetbacks.

The other thing you may want to do is fix the comment count to only show actual comments, filtering out the trackbacks/pingbacks which are included in your comment count by default. Simply add the following code to your functions.php file (which again can be created if you don’t already have one):

<?php
add_filter('get_comments_number', 'comment_count', 0);
function comment_count( $count ) {
  if ( ! is_admin() ) {
    global $id;
    $comments_by_type = &separate_comments(get_comments('status=approve&post_id=' . $id));
    return count($comments_by_type['comment']);
  } else {
    return $count;
  }
}
?>

So there you go. Now you have succesfully separated trackbacks from comments!

Source Link

 

Images Related Hacks

14. Automatically Resize Pictures on Your WordPress Blog

instantShift - Exceptional WordPress Hacks

You know it, a picture is worth a thousand words. But pictures means that you have to resize it, which is alwyas boring.
Happilly, a very cool script called TimThumb can resize pictures for you. The function below create a WordPress shortcode that will make Timthumb use even easier.

function imageresizer( $atts, $content = null ) {
  return '<img src="/timthumb/timthumb.php?src='.$content.'&w=590" alt="">';
}

add_shortcode('img', 'imageresizer');

Then, you can use the following syntax to add an automatically resized image to your blog post:

[img]http://www.yoursite.com/yourimage.jpg[/img]

Source Link

 

Social Networking and Email Related Hacks

15. How to Create a Tweetmeme “Retweeet” Shortcode

instantShift - Exceptional WordPress Hacks

Twitter is one of the best way to get quality traffic to your blog. In order to help people sharing your articles on Twitter, you should definitely implement a Tweetmeme button, which display how many time time people RT’d your blog posts.

Just paste the function below into your functions.php file.

function tweetmeme(){
  return '&lt;div class=&quot;tweetmeme&quot;&gt;&lt;script type=&quot;text/javascript&quot; src=&quot;http://tweetmeme.com/i/scripts/button.js&quot;&gt;&lt;/script&gt;&lt;/div&gt;';
}
add_shortcode('tweet', 'tweetmeme');

Once you saved the file, you’ll be able to display the Tweetmeme “retweet” button anywhere on your posts. In WordPress editor, make sure you are in HTML mode and insert the following:

[tweet] 

When your post will be published, the shortcode will be replaced by the TweetMeme button.

Source Link

16. Send Article to a Friend by Email

instantShift - Exceptional WordPress Hacks

In order to create more traffic on your blog, it can be a good idea to let your readers send your posts to their friends by email.

To apply this recipe to your blog, simply paste the following function into your functions.php file, and that’s all. Hard to do something simpler!

function direct_email($text=&quot;Send by email&quot;){
  global $post;
  $title = htmlspecialchars($post-&gt;post_title);
  $subject = 'Sur '.htmlspecialchars(get_bloginfo('name')).' : '.$title;
  $body = 'I recommend this page : '.$title.'. You can read it on : '.get_permalink($post-&gt;ID);
  $link = '&lt;a rel=&quot;nofollow&quot; href=&quot;mailto:?subject='.rawurlencode($subject).'&amp;amp;body='.rawurlencode($body).'&quot; title=&quot;'.$text.' : '.$title.'&quot;&gt;'.$text.'&lt;/a&gt;';
  return $link;
}

Source Link

 

Author Related Hacks

17. Automatically Insert Author Bio on Each Post

instantShift - Exceptional WordPress Hacks

When you’re owning a multi-writers blog, it is important to show who wrote the post. In case of guest bloggers, it is also a nice way to give credit.

Simply insert the following lines of code into your functions.php file, and that’s all. Author bio will be automatically displayed after each post.

function get_author_bio ($content=''){
  global $post;

  $post_author_name=get_the_author_meta("display_name");
  $post_author_description=get_the_author_meta("description");
  $html="
<div class="clearfix" id="about_author">\n";
  $html.="<img width="80" height="80" class="avatar" src="http://www.gravatar.com/avatar.php?gravatar_id=".md5(get_the_author_email()). "&default=".urlencode($GLOBALS[" defaultgravatar'])."&size="80&r=PG'" alt="PG">\n";
  $html.="
<div class="author_text">\n";
  $html.="
<h4>Author: <span>".$post_author_name."</span></h4>

\n";
  $html.= $post_author_description."\n";
  $html.="</div>

\n";
  $html.="
<div class="clear"></div>

\n";
  $content .= $html;
  }
  return $content;
}

add_filter('the_content', 'get_author_bio');
</div>

Source Link

 

Feeds Related Hacks

18. How to Fetch and Display RSS Feeds

instantShift - Exceptional WordPress Hacks

Do you know that WordPress have a built-in RSS reader? And you can use this feed to utilize in many ways. Here we’ll tell how to import and display feeds in wordPress 2.8 and beyond.

Simply paste the following code where you want the feed to be displayed. Don’t forget to define feed url at line 4.

<?php if(function_exists('fetch_feed')) {

  include_once(ABSPATH.WPINC.'/feed.php');
  $feed = fetch_feed('http://feeds.feedburner.com/catswhoblog');

  $limit = $feed->get_item_quantity(7); // specify number of items
  $items = $feed->get_items(0, $limit); // create an array of items

}
if ($limit == 0) echo '<div>The feed is either empty or unavailable.</div>';
else foreach ($items as $item) : ?>

  <div>
    <a href="<?php echo $item->get_permalink(); ?>" title="<?php echo $item->get_date('j F Y @ g:i a'); ?>">
      <?php echo $item->get_title(); ?>
    </a>
  </div>
  <div>
    <?php echo substr($item->get_description(), 0, 200); ?>
    <span>[...]</span>
  </div>

<?php endforeach; ?>

Source Link

 

Category and Tags Related Hacks

19. How to Change Excerpt Length Depending of the Category

instantShift - Exceptional WordPress Hacks

Do you ever wished to be able to modify the excerpt length based on which category you are on, without modifying your theme files? If yes, we’re pretty sure you’ll be happy with this hack.

No need to modify your theme files. Simply paste the code into your functions.php file. Don’t forget to change the category ID on line 3!

add_filter('excerpt_length', 'my_excerpt_length');
function my_excerpt_length($length) {
  if(in_category(14)) {
    return 13;
  } else {
    return 60;
  }
}

Source Link

20. Create a Function to Get Tags Related to Category

instantShift - Exceptional WordPress Hacks

First, here is the function you have to paste in your functions.php file:

function get_category_tags($args) {
  global $wpdb;
  $tags = $wpdb->get_results
  ("
    SELECT DISTINCT terms2.term_id as tag_id, terms2.name as tag_name, null as tag_link
    FROM
      ks29so_posts as p1
      LEFT JOIN ks29so_term_relationships as r1 ON p1.ID = r1.object_ID
      LEFT JOIN ks29so_term_taxonomy as t1 ON r1.term_taxonomy_id = t1.term_taxonomy_id
      LEFT JOIN ks29so_terms as terms1 ON t1.term_id = terms1.term_id,
      ks29so_posts as p2
      LEFT JOIN ks29so_term_relationships as r2 ON p2.ID = r2.object_ID
      LEFT JOIN ks29so_term_taxonomy as t2 ON r2.term_taxonomy_id = t2.term_taxonomy_id
      LEFT JOIN ks29so_terms as terms2 ON t2.term_id = terms2.term_id
    WHERE
      t1.taxonomy = 'category' AND p1.post_status = 'publish' AND terms1.term_id IN (".$args['categories'].") AND
      t2.taxonomy = 'post_tag' AND p2.post_status = 'publish'
      AND p1.ID = p2.ID
    ORDER by tag_name
  ");
  $count = 0;
  foreach ($tags as $tag) {
    $tags[$count]->tag_link = get_tag_link($tag->tag_id);
    $count++;
  }
  return $tags;
}

Once you have pasted the function, you can use it in your theme:

$args = array('categories' => '12,13,14');
$tags = get_category_tags($args);

Source Link

 

Plugin Related Hacks

21. How to Create an Anti-IE6 Plugin

instantShift - Exceptional WordPress Hacks

With this amazing code created by Nathan Rice, you’ll be able to serve IE6 users the default WordPress theme. After all, those idiots don’t deserve anything better

Just paste the following in a new file and save it as ie6.php. Upload it to your wp-content/plugins directory and activate it on your WordPress dashboard.

<?php
/*
Plugin Name: Serve Default to IE6
Plugin URI: http://www.nathanrice.net/blog/serve-ie6-visitors-the-default-wordpress-theme
Description: This plugin will serve the default theme to any visitors using IE6.
Author: Nathan Rice
Author URI: http://www.nathanrice.net/
Version: 1.0
*/

add_filter('template', 'serve_default_to_iesix');
add_filter('option_template', 'serve_default_to_iesix');
add_filter('option_stylesheet', 'serve_default_to_iesix');
function serve_default_to_iesix($theme) {
  if(strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 6') !== false)
    $theme = 'default';
  return $theme;
}
?>

Source Link

22. How to Check if a Plugin is Active or Not

instantShift - Exceptional WordPress Hacks

When working with lots and lots of plugins, it can be useful for developers to be able to check if a particular WordPress plugin is active or not. If you want to check if a WordPress plugin is active, just use the is_plugin_active() function. The function takes a single parameter, which is the path to the plugin, as shown in below:

<?php
if (is_plugin_active('plugin-directory/plugin-file.php')) {
	//plugin is activated
}
?>

Source Link

Other Resources

Find Something Missing?

Please feel free to share any hack that you think would be a great addition in this collection and that has not been listed already.

Like the article? Share it.

LinkedIn Pinterest

102 Comments

  1. A great list of hacks

    Tags related to Category function has great potential for some seo work I am doing on one of my blogs.

    Keep it coming

    Rich

  2. Awesome !
    just what I was looking for.
    07. How to Show WordPress Post Attachments
    15. How to Create a Tweetmeme “Retweeet” Shortcode

    Thank you so much.

  3. Great list! That Tweetmeme was exactly what I was looking for! Thanks for taking the time to put all this information together for us!

  4. Read it. Amaze it. Bookmark it. Stumble it.

    Great tutorial for every WP user :)

  5. Great list, will definitely be able to deploy a couple of these.

  6. Great list Anders. I liked that direct_email and showing post in columns function.
    Thanks :)

  7. really interesting! Thank you.

  8. Great tutorials of WordPress “hacks” to help your blog stand out !!

  9. very nice! i love this 20. Create a Function to Get Tags Related to Category!

    thanks!

  10. Great post – many simple ‘must try now’ elements here :-)

    I think that hacks 8 and 9 could be used to make a nice feature of styling expired posts differently – alas my main competency lies in copy+paste – would a hack like I suggest be feasible?

  11. This is really great and detailed summary of top 20 hacks and tricks found on other sites. Several of these though can be performed automatically in WordPress 2.8.4 without any hacks, and others can be performed with WordPress plug-ins that are easier to implement in some cases than doing the code tweaks manually.

    Also, you might consider the CSS WordPress plug-in which GZIP compresses your css files as the ZLIB trick only compresses html code, this combined with the ZLIB trick helps provide even better pageload performance.

  12. @Eric Charpentier- thanks for pointing that out… things been updated now !!

  13. Cool, Awesome WordPress List. Many thanks ! :)

  14. Excellent post!

    You might want to change number 1 to read:

    you can harness the power of PHP and increase your blog’s load speed!

    instead of

    you can harness the power of PHP and reduce your blog’s load speed!

  15. Really a great list of hacks! I already heard about some, but some where new.. Thanks for it! I really liked the “Author Bio” Hack, thats what I was looking for.

  16. I love you guys great post.

  17. Very well done. just tried a couple and works liek a charm.

  18. If zlib isn’t working for you, you can try gzip. It’s a little more common and a little easier to use. All you have to do is paste one line of code in your functions.php file and that’s it, no creating extra files or anything.

    I wrote about it here:
    1 Incredibly Wicked Trick To Speeding Up Your Blog’s Load Time

  19. Why am I having problems with the special characters, such as %lt;? I can’t get it work unless I replace those with the characters they represent, such as <.

  20. Awesome list. Thanks!

  21. #1 works awesome, thanks a bunch!!

  22. nice post n very usefull tips.
    thanks

  23. “you’ll be able to serve IE6 users the default WordPress theme. After all, those idiots don’t deserve anything better”

    ahahahah classic, classic! :D

  24. Fantastic! Already using one or two of them on my site! Great job! (Did I say it was fantastic?)

  25. Really useful article. Thx a billion.

    Except for a few of typing mistakes. Some code slices should be html-decoded, that “>” shall be “>” in section 03, or something in section 10, 14-17

  26. Thx for the hacks! I’ve used a couple already. :)

  27. Awesome information – thanks so much! And, I DO follow you on Twitter already! ;)

    Have thought about maybe getting guest authors…

  28. Awesome! Excellent presentation and very helpful to use, Thanks.

  29. Waouh! Excellent post !!!

  30. Please check if the code for tweetmeme you have is correct. The (<) ascii codes are confusing me. My WP crashes whenever I enter this code in my functions.php

  31. Love the post.

  32. I’m going to bookmark this, because my retweet button is not working on shaboopie :(

  33. Very cool listing!
    Thanks for sharing Anders, very useful

  34. Wow, very informative article, definitely some hacks that will come in very, very handy (especially the parent page title hack). Thanks for the awesome post.

  35. Thanks for including Desizn Tech’s post. Gotta love WP

  36. Great hacks.. few of them I never thought which could be possible and useful for me..
    I want to create a sort out table calling content from database.. how?

    Thanks

  37. Great set of hacks, but I have a question about the use of timthumb. Your code doesn’t seem to include any parameters to tell it what size or crop/zoom setting to use. Am I missing something there or are you allowing it to use default values?

  38. 19. How to Change Excerpt Length Depending of the Category. Is it possible to apply it not just to a category?I would like to change the excerpt length of all of my post under all category.

    TY

  39. I tried the “01. How to Speed Up Your Blog’s Loading Speed”, but it didn’t work for me. I even tested it at Port80Software.com, and the report read that my site was not compressed. I wish I could code PHP, but is there possibly a problem with the code? Thanks!

  40. great job, Thanks

  41. great post, it must have taken you ages to put all of these together for us, thanks.

  42. Loved that hack to display text in columns, thats fresh and rare. Should try that once :)

  43. WordPress Hacks are good but the only problem is that hacks must be reapplied whenever the site version is updated. Anyway thanks for sharing.

  44. Can you tell me a hack where I want to keep a fixed user say admin whose account password cannot be reset by other administrator users.

  45. Thanks for including Desizn Tech’s post. Gotta love WP

  46. Great Must try List! thanks a lot!

  47. Thanks for all the great information….very useful…:)

  48. The trick n°3 “How to Get All Custom Fields From a Page or a Post” is amazong ! Thanks for the ressources !

  49. this is a really excellent selection of tutorials – it’s so broad that there really is something for every budding WP designer!

    thanks alot for your effort!

  50. Good post. You did a good work,and offer more effective imformation for us! Thank you.

  51. Great article :)

  52. very much useful for a novice.

  53. nice piece of programming. few gr8 tips

    Jas

  54. Can you tell me a hack where I want to keep a fixed user say admin whose account password cannot be reset by other administrator users. it’s so broad that there really is something for every budding WP designer!

  55. I’m going to bookmark this, because my retweet button is not working on shampooer. Really a great list of hacks! I already heard about some, but some where new.. Thanks for it! I really liked the “Author Bio” Hack, thats what I was looking for.

  56. Hmmm May have to implement some of this stuff, great post

  57. Thanks a lot for sharing this. I have never thought that surfing online can be so much beneficial and entertained in a good shape. I feel really happy and grateful for providing me with such priceless sound track. All are good here simply best. I want such article again and again
    http://www.handbagsdreams.com

  58. Great article ! I do not use anymore plugins, wich may contain security breach !
    Thanks again

  59. very nice! i love this 20. Create a Function to Get Tags Related to Category!

    thanks!

  60. Just WOW! Powerful hacks! Keep posting great articles!

  61. It is very useful information.
    Your comparisons of different e-Commerce sites was helpful.
    Thanks a lot

Leave a Comment Yourself

Your email address will not be published. Required fields are marked *