Aside

Custom Post Types Archives in WordPress

Did you know that register_post_type has got a has_archive argument which can be set to a string? In which case it will use that string as a slug for the archives and generate the proper rewrite rules for you. Don’t forget to visit your permalinks settings page though to flush rules when making changes.

Twitter Account Suspended

Here’s a Thanksgiving surprise I got from Twitter today. Seriously, I’ve got a dozen accounts for brands and experiments I run using the Twitter API, but never on my own and funny thing, the rest are fine but mine’s suspended, and no single e-mail from them in my inbox! Contacting Twitter support, let’s see what they have to say.
Happy Thanksgiving!

My website is now super-fast with Varnish

My website is now super-fast with Varnish — an open source HTTP accelerator which sits on top of your HTTP servers and serves your cached pages. It didn’t take me longer than 20 minutes to get Varnish up and running on my Ubuntu VPS, and a few more minutes to set all my nginx configurations to port 8080, bringing Varnish to port 80. The problem with WordPress however, is that it...

Selective Page Hierarchy for wp_list_pages

Check out Selective Page Hierarchy for wp_list_pages() where Michael Fields shows how he extended the WordPress Walker_Page class to create a selective “drilldown” page walker, which can then be used with wp_list_pages.

PayPal Default Merchant Language Settings

Note to self. If your PayPal button is directing your visitors to a non-English website (probably because your account was set up in a different country) you can override the language setting with an lc key in the PayPal button form, like this: <input type="hidden" name="lc" value="US" /> This will make sure that the checkout page is in English. Read more about HTML Variables for Website...

Git Archive for WordPress Themes

Quick tip! If you’re using Git when developing WordPress themes and would like to create a clean “export” of the theme that would be installable from the WordPress admin interface and accepted to the WordPress.org themes directory, you can use the git archive command for that with some special arguments: git archive --format zip --output /path/to/themename-1.1.zip ...

Artiste by Orman Clark

Artiste by Orman Clark is a very nice looking portfolio theme for WordPress released today. Just like the rest of Orman’s themes, this one’s got a bunch of options, widgets, shortcodes and templates as well as a layered PSD for heavy customization. Doesn’t seem like it responds to media queries but the layout is flexible enough to fit an portrait iPad.

What are the most exciting features in WordPress 3.3

Question! With WordPress 3.3 just around the corner, we’re all interested in what are the most exciting features in the upcoming core update? Vote and feel free to add your own choices to the poll. My vote goes for permalinks performance and feature pointers.

Don’t Create a Quote Shortcode

Don’t create a “quote” shortcode when the HTML “blockquote” tag does a perfectly good job. I’ve seen themes that have shortcodes for quotes, citations and headers but no support for the same styling with HTML tags.
Sawyer Hollenshead on Building WordPress Themes You Can Sell