Custom Post Type Snippets to make you smile

So it’s friday, I’ve been coding all day and I thought I’d share some of the cool snippets I’ve come across and/or developed today. I’ve mostly been working with Custom Post Types and Taxonomies, so let me share some of that goodness. Let’s geek out in a bit, but first let me show you why…

WordPress template part: a powerful tool

Now that I’m working with custom post types a bit more on this site, for my plugin reviews and speaking agenda, for instance, I’m also starting to appreciate the power of the WordPress template part functionality a whole lot more, which was introduced in WordPress 3.0. Let me explain how I use it and how…

WordPress editor style

I’m writing this with a WordPress editor style CSS active, for the first time. This feature has been available in WordPress since WordPress 3.0 but I had not used it until now, which is nothing but stupid. A WordPress editor style makes the TinyMCE editor used in visual editing mode look like your theme, using…

Turn your commenters into subscribers!

Only a small percentage of your visitors leave a comment. This group of people is probably also interested in subscribing to your newsletter, if you have one. So I created a method to add a “subscribe to my WordPress newsletter” checkbox to my comment form a couple of weeks ago. The result? 40 new subscribers…

The anatomy of a WordPress theme

With all the WordPress theme frameworks that arose over the past few years, you’d almost forget what a normal WordPress theme looks like. Almost, because Yoast has got your back and we’re about to remind you! Check out our anatomy of a WordPress theme infographic: For reference, here is the copy in the infographic: Anatomy of a WordPress…

How to reduce HTTP requests for your WordPress site

The web is sort of a reversed highway: you get tickets for going too slow and bonus points for speeding. Whether you’re “just” a blogger or you have an e-commerce site, your site needs to be fast. We’ve written about what to do to speed up Magento before, and I’ve mentioned caching for WordPress more…

Quick WP Tip: paths and URLs in WordPress

I was reading an article on Sitepoint about custom write panels the other day when I got heavily annoyed. The direct reason for this was one of their code examples and the authors apparent incomplete knowledge of the WordPress API’s most basic functions and constants. In that example, he does the following: That annoyed me,…

Why functionality in themes is not always good.

So you’ve switched over to a theme that comes with built-in functionality for titles and meta descriptions. Instead of using HeadSpace2, All in one SEO or another SEO plugin, you’re now using the theme’s built-in SEO functions and input boxes for title’s and meta descriptions. It just seems more logical doesn’t it? Loading one plugin…

Implementing hreview in your WordPress theme

In his previous post here on Yoast, Frederick explained why you should use Microformats to get Rich Snippets showing for your site and increase the CTR from Google. In the comments of that post, people were asking if there are plugins to easily implement this in your theme. While those are probably a bit hard…

Practical Guide to creating a 404 Error Page for WordPress

I make mistakes. You make mistakes. We all do. And some of these mistakes end up providing our readers with a 404 page. Chances are that page says “Error 404: file not found”. How does that help your visitor? Instead of just identifying the problem, your 404 error page needs to offer a solution. In…