Creating a valid WordPress theme

Recently, I've been checking out some of the blogs that link back to me because they use one of my plugins. And it seems like a lot of them are using buggy, incorrect templates. It looks like many WordPress theme developers don't read the theme development checklist.

Another fine document that some developers seem to ignore is the list of plugin API hooks. Please, read that section, and include these hooks in your template! Some plugins need that API hook to work at all. My surprisingly popular snowstorm plugin for example certainly does.

While you're at it, think about how you want to style, for example, the wp_footer() call. When I visit pages that give me a backlink through that call, sometimes the backlink is displayed in very odd places and with weird colors.

Finally, although it has already been said on the pages I linked to, get the theme unit tests and use them! It's quite embarassing for a designer to release buggy WordPress templates.

3 comments

  1. avatar
    wrote this comment on

    Hi Nick,

    Thank you very much for this. I recently completed my first WordPress theme and I thought I was all done but after going through the checklist, I found so many things missing. Thank you very much once again!

    1. avatar
      wrote this comment on

      The checklist is a great resource :-)

  2. avatar
    wrote this comment on

    Hi Nick,Thank you very much for this.

Start a new thread

Cancel reply
Markdown. Syntax highlighting with <code lang="php"><?php echo "Hello, world!"; ?></code> etc.