5 New Features in WordPress 3.0

by LunchBox on March 31st, 2010 in Uncategorized

WordPress 3.0 is a month away (Official Release date is May 1st, 2010), but a few of its new features have already been leaked to the public. There are a few that are nice, but not completely necessary for hardcore WordPress user (new default theme, custom background for a theme, new welcome guide), but here a few features I’m really excited about. …Read More

Automatically Include jQuery

by LunchBox on March 22nd, 2010 in Uncategorized

Automatically include jQuery to your blog’s theme by entering the following script in your theme’s functions.php page:

if (!is_admin()) {
wp_deregister_script('jquery');
wp_register_script('jquery', ("http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"), false, '1.3.2');
wp_enqueue_script('jquery');
};

…Read More

Survive Traffic Spikes

by LunchBox on March 15th, 2010 in Plugins, Tips

Your WordPress site should be able to handle a decent amount of traffic, assuming it’s hosted on a fairly reliable server. But what happens if your site is featured on a website like Digg, and all of the sudden your site is getting hit with tens of thousands of visitors at once? Chances are, your site will be overwhelmed with the amount of incoming connections to the database and your site will fail to display for most users. Luckily, there is a neat plugin to help you survive these traffic spikes.
…Read More

Retrieving Posts Within A Date Range

by LunchBox on March 12th, 2010 in Hacks

If you develop WordPress themes, you have probably come across the need to display posts within a certain range of dates. Unfortunately, this isn’t something you can easily do within the query_posts(); function. However, you can still do this by creating and running a filter. Add the following code BEFORE the query_posts(); function:

…Read More

Featured Plugin – XML Sitemap Generator

by LunchBox on March 11th, 2010 in Plugins

Having a Sitemap residing on your server is an essential part of the Search Engine Optimization (SEO) process for any website. It’s easy to create one on a static site, but for an ever changing and dynamic site like your WordPress blog, it can be a nightmare. Luckily, there is an excellent plugin out there called XML Sitemap Generator.

…Read More

Single Out A Specific User

by LunchBox on March 10th, 2010 in Tips

Have you ever wanted to test out some new code on your WordPress template, but don’t want your readers to see it quite yet?  No problem, there’s an easy way to do this.  Just single yourself out by using the following code:

…Read More

5 Quick To-Dos After A WordPress Installation

by LunchBox on March 9th, 2010 in Tips

Congratulations, you’ve just installed Wordpress.  What next?  Before you start customizing and writing posts, here are a few things you can do to improve and secure your WordPress installation.

  1. Disable HTML in Comments
    If you do not want your users styling their comments, or spamming them with links, you can add this line of code to your functions.php file:

    add_filter( 'pre_comment_content', 'wp_specialchars' );
  2. Remove WordPress version from the source code
    Anyone can view the source code of your website.  In most cases, your header.php file will contain the version number of your current installation.  To have it automatically removed, add this to your functions.php file:

    remove_action('wp_head', 'wp_generator');

    This prevents any hackers from targeting the flaws and bugs of a specific version of WordPress to hack your website. …Read More