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 […] 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:

$components = tldextract('http://www.bbc.co.uk/');
echo $components->tld; // Outputs "co.uk".

Introduction

Most people try […] 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 […] Continue Reading…


Finding Related WordPress Plugins

August 15th, 2012

A few days ago, I happened upon an interesting post on the ManageWP blog discussing ways to improve the WordPress plugin repository. One of the suggestions was to add a “related plugins” feature:
Both Lester Chan, with over 7 million plugin downloads to his name, and Duane Storey, a co-founder […] 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.[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…