Simple trick to speed up your WordPress blog

I like WordPress a lot but the fact is that it is slower than serving static HTML pages. However, there is a very simple trick that can significantly speed up the loading of your wordpress blog. The tip is: “Reduce the number of unnecessary PHP calls”

This means replace the PHP calls in your wordpress theme with static HTML for things like blog title, content-type and the like. In the wordpress panel, go to the theme editor and open header.php

For example, change these lines

  1. <html xmlns="" <?php language_attributes(); ?>>
  2. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  3. <title><?php bloginfo(‘name’); ?> <?php if ( is_single() ) { ?> &amp;raquo; Blog Archive <?php } ?> <?php wp_title(); ?><?php bloginfo(‘description’); ?></title>

so they look something like this

  1. <html xmlns="" dir="ltr" lang="en-US">
  2. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  3. <title>Web Hosting Blog</title>

9 Thoughts on “Simple trick to speed up your WordPress blog

  1. Pingback: Wordpress Hosting - Simple trick to speed up your Wordpress blog | Web Hosting Blog

  2. Hi. I like the way you write. Will you post some more articles?

  3. This is a very usefull article. My wordpress blog always dragging along. Will definitely try this trick. Keep well.

  4. MichaellaS on July 22, 2009 at 4:54 pm said:

    tks for the effort you put in here I appreciate it!

  5. Hi buddy, looks great… thank you sharing, i like it :)
    Simple and usefull

  6. Does anyone know of a cheap but reliable web hosting company?.*:

  7. there are many webhosting companies these days and most of them are overselling their products,”"

  8. when it comes to webhosting, try selecting a webhost with Directadmin rather than Webmin control panel*-`

  9. What blog sites would be good for a small business in floral and gifts?

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Post Navigation