Blog

Nesting WordPress loops

Sometimes it's useful to put a WordPress loop inside another loop. To do this you'll have to create a new WP_Query object, as in this example: <?php $my_query = new WP_Query( "cat=3" ); if ( $my_query->have_posts() ) { while ( $my_query->have_posts() ) { $my_query->the_post(); the_content(); } } $GLOBALS['post'] = $GLOBALS['wp_query']->post; ... more

Visitor Movies for WordPress

Did you ever want to know what exactly your visitors are doing on your site? Watch them! A client of mine wanted a plugin to log what users type into forms. I kind of didn't see the point at first. But a few days later I was a little annoyed ... more

Convert WordPress pages to posts

I like WordPress, but I don't like the WordPress page system at all. That's why I recently converted all my plugin pages to posts. My main reasons for doing so were: Pages can't be tagged Pages don't have categories Pages and posts don't mix too well in custom loops Pages ... more

Get WordPress comments outside of WordPress

Update: Apparently this code is also necessary when you want to list the comments on the blog page, and probably on archive pages as well. There could be a better solution, if you really care check out the P2 theme (and leave a comment). Sometimes you want to access WordPress ... more

Custom Avatars For Comments

Custom Avatars For Comments This plugin was initially written for a client and he agreed to open-source it. Thanks, John! Your visitors will be able to choose from the avatars you upload to your website for each and every comment they make. This can make leaving a comment on your blog more fun and ... more

My plugins featured in Web Designer Magazine

My plugins featured in Web Designer Magazine In issue 164 of Web Designer Magazine by Imagine publishing there is a feature article on WordPress plug-ins: Electrify Your Blog: The Top 20 WordPress Plug-ins for the Next-gen Blogger. I'm very happy to see that they listed two of my plugins in it. Web Designer issue 164The first plugin ... more

Using git for WordPress development

git is a powerful revision control system. It is a distributed system. This means that you can commit, create branches or tags on your local hard drive without any network connection. Read more about git on the project's website, there's also great documentation there. If you write WordPress plugins and ... more