Custom Post Features could make WordPress even more flexible

One of the biggest, and most useful additions to WordPress in recent years has been the introduction of Custom Post Types. Before CPTs, all the content in your site needed to either be in pages or in blog posts. If your site needed a lot of different types of data, you’d typically use categories (or even tags) to tell them apart. I’ve seen (and probably built) examples where “products” and “news” were post categories, and the site’s front-end would continuously filter out one of the two. In hindsight: madness.

Since the introduction of Custom Post Types, it makes sense to declare separate types for different types of data. When doing so, there’s a crucial argument (passed to the register_post_type function) called “supports”. This argument tells WordPress which post features should be available for the new post type. This allows you to mix and match various features. No need for an excerpt? Require a “featured image”? Need custom fields? No problem. But there’s a catch.
More Custom Post Features could make WordPress even more flexible

The top 5 WP-Cumulus hacks

Every once in a while a user asks me how to change something in WP-Cumulus that fits his or her specific needs. If enough people ask for the same thing (*), it’ll probably be in the next release, but sometimes the modification is so specific to a certain website or project that it makes sense to simply hack it in. Here are the five most common of those, in no particular order.
More The top 5 WP-Cumulus hacks

Obfuscate email addresses using PHP

If you want to include an email link in a WordPress template, or any other web page for that matter, its advisable to ‘obfuscate’ the address. Unfortunately, spammers scour the web to harvest email addresses, so if you simply place your address online, you’re very likely to get a some extra unwanted email. That’s where obfuscation comes in.
More Obfuscate email addresses using PHP