20+ Useful But Often Overlooked Utility Functions In WordPress

September 4th, 2012

Today I bring you 20+ handy built-in WordPress functions. Some of them you may already know and use every day, while others you’ve probably never heard of as they’re usually not mentioned in WP tutorials or even the WordPress Codex. Being aware of these functions and knowing how to use them will save you time […]

Continue Reading...

tldextract.php – Extract TLD, Domain And Subdomains From URLs

August 28th, 2012

tldextract.php is a PHP library that accurately extracts the effective top-level domain name, registered domain and subdomains from a URL. For example, you can use it to get the domain name “google” from “http://www.google.com”, or the TLD “co.uk” from “http://www.bbc.co.uk/”. Example: Introduction Most people try to do this by splitting the domain name on ‘.’ […]

Continue Reading...

Fixing “You do not have sufficient permissions to access this page” Errors

August 21st, 2012

Chances are, you’ve run into this WordPress error at one time or another: That’s a pretty unhelpful error message, isn’t it? Not only does it tell you nothing about what the exact problem is or how it occurred, but it’s also sometimes just plain wrong. Pretty often, it has nothing to do with insufficient permissions. […]

Continue Reading...

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. Export Files See How to import WordPress export files for instructions on how to import the files listed in this section on your site. Theme Unit Test Data from WordPress.org 22 Posts Sticky post […]

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 the $version argument in your […]

Continue Reading...