• Post Templates

    Page and Category templates we know. Easy to make. But with posts we need some code: <?php     $post = $wp_query->post;     if ( in_category('5') ) {incl...
    Aug 17, 2011 No Comments

  • Get category name from post

    If you want to show the category name that the current post exists, insert the code below inside the loop: <?php foreach((get_the_category()) as $category) {   $po...
    Aug 17, 2011 No Comments

  • Leverage Browser Caching

    A simple way to have better grades in Google PageSpeed about Leverage Browser Caching is editing the .htaccess file on your server and pasting the code below: ## EXPIRES CACHING ## ExpiresActive On E...
    Aug 11, 2011 No Comments

  • Timthumb.php WordPress exploit fix

    Yesterday, I came up with this new threat that makes millions of blogs vulnerable because of timthumb.php. Many WordPress theme developers use it as an image resizer. Apparently some hackers found ano...
    Aug 04, 2011 No Comments

  • Facebook W3C Validation

    Facebook is a pain in the ass. Period. Many of you are total clean-code freaks and you want your websites to be W3C Valid. But Facebook doesen’t care much about that. Well, I do. If you want to ...
    Aug 04, 2011 No Comments

  • Desaturate any item

    Feeling moody? Want everthing in black and white? Then here’s what to do: Open the notepad and paste the following code: <?xml version="1.0" encoding="UTF-8"?> <svg ...
    Aug 04, 2011 No Comments

  • Enable “Google – feeling lucky” search

    If you want to search directlyy from your address bar and go to first site that Google thinks you want to see then follow these steps: Open a new tab and paste about:config. Press Enter At the Filter...
    Jun 11, 2011 No Comments

  • WordPress wp-config.php Tricks

    There are some tricks you can add inside wp-config.php to disable or enable functions that WP uses. Please handle with care :] define('WP_POST_REVISIONS', false); // Disable post revisions def...
    May 26, 2011 No Comments

  • Show specific Category in Homepage

    If your default theme shows all the latest posts in Homepage and you hate that, simply paste the code below inside functions.php function exclude_category($query) { if ( $query->is...
    May 26, 2011 No Comments

  • Get Post Name

    Very very useful! How to get the post name by its ID (p=12): <?  $post_data = get_post($post->ID, ARRAY_A);     $slug = $post_data['post_title'];     ech...
    May 26, 2011 No Comments

  • Cufon hides in IE9

    If your cufon is not appearing in Internet Explorer 9 (IE9) then do one of the following: Add the following snippet inside the header.php and before </head> tag:   <!--[if gte IE 9]&...
    May 26, 2011 No Comments

  • Country List

    Here you can download a full country list to use in drop-down menus in cforms. Open text file here or right clik and save as…
    May 26, 2011 No Comments

eXTReMe Tracker