Tips

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

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