WordPress Sample Content For Testing

August 8th, 2012

For all your theme testing and plugin development needs, here’s a huge list of WordPress sample content collections and dummy content generators.[raw]

.entry img, .entry a img
max-width: 498px;

-webkit-border-radius: 5px;
border-radius: 5px;

-webkit-box-shadow: 2px 2px 6px rgba(50, 50, 50, 0.75);
-moz-box-shadow: 2px 2px 6px rgba(50, 50, 50, 0.75);
box-shadow: […] Continue Reading…

Automatic Versioning Of JS And CSS Files In WordPress

July 30th, 2012

If you’re a WordPress developer, this will probably sound familiar: you make a change to  one of your scripts or style sheets, reload the page you’re working on to see the result, and… everything stays the same.

Of course, after a moment of confusion, you realise that you didn’t update […] Continue Reading…

Error Log Monitor

July 25th, 2012

Whether you’re using WordPress for development or simply as a blog or CMS, it is always a good idea to keep an eye on your PHP error log.

As a developer, it helps you notice and fix errors in your code.
As a normal user, it lets you discover plugin bugs, […] Continue Reading…

Formatting JSON With PHP

July 17th, 2012

The built-in json_encode() function in PHP puts everything on one line. For development and debugging, it can often be more useful to have properly indented, human-readable JSON that makes it easier to manually inspect the encoded data and check it for problems.

Here’s a function that lets you format/pretty-print any […] Continue Reading…

How To Use The Default Admin Menu Icons In Your Plugin

July 10th, 2012

As you probably know, you can use the add_menu_page() function to create a top level admin menu for your WordPress plugin or theme. This function allows you to specify a menu icon by passing an image URL as the $icon_url argument. But what if you want to use one […] Continue Reading…