Add post format support to Theme Hybrid via child theme

I’m currently using Theme Hybrid as a parent theme and have been exploring the internals with an eye to using WordPress 3.1’s new Post Formats for a lot of my content. I import my tweets from [Twitter](http://twitter.com/) via [Ozh’ Tweet Archiver](http://wordpress.org/extend/plugins/ozh-tweet-archiver/); I import my bookmarks from [Delicious](http://www.delicious.com/) via [FeedWordPress](http://wordpress.org/extend/plugins/feedwordpress/). These imported posts were previously stored in Custom Post Types, but Post Formats seem like a better fit, especially with the [hoops I jumped through](http://bajada.net/2010/10/12/custom-post-types-in-the-loop-using-pre_get_posts-refined) to get them to appear in The Loop.

The following explores options in Theme Hybrid for using a child theme to create custom Post Formats.

Continue reading Add post format support to Theme Hybrid via child theme

Custom Post Types In The Loop: Using `pre_get_posts`, Refined

[deprecated permalink=”http://uncommoncontent.com/2012/01/28/add-custom-post-types-to-the-loop”]

Third verse, almost the same as the first.

Using `request` data means that requests that end up with a 404 or are a search produce weird results with navigation menus, among other oddities. So I’m back to using `pre_get_posts` to include custom post types, with a few refinements.

Continue reading Custom Post Types In The Loop: Using `pre_get_posts`, Refined

Set custom post type and taxonomy terms with Ozh’ Tweet Archiver

I’m a sucker for custom post types, and also for archiving my tweets. [Ozh’ Tweet Archiver](http://planetozh.com/blog/my-projects/ozh-tweet-archiver-backup-twitter-with-wordpress/) hits the sweet spot between form and function; I added this filter to my `functions.php` so that I could keep tweets separate from posts without having to build a new blog.

Continue reading Set custom post type and taxonomy terms with Ozh’ Tweet Archiver

Custom Post Types In The Loop: Using `request` Instead Of `pre_get_posts`

[deprecated permalink=”http://uncommoncontent.com/2012/01/28/add-custom-post-types-to-the-loop”]

I’m currently testing out a new version of my code to include custom post types in The Loop. So far, I haven’t found any functional differences. I’d like to do some things with post type archives and a possible `is_type()` function that would make my life easier when working with theme development, hence the change. I’m also trying out `any` instead of an array of post types.

Continue reading Custom Post Types In The Loop: Using `request` Instead Of `pre_get_posts`

Small Pixel Icons For Web Designers II

Many Open Source projects provide their icons for use in other projects. In addition, the licenses of many icon sets allow for remixing and extension. This is hugely beneficial to end-users, as it allows designers to distribute add-on packs without having to worry about complex licensing terms.

Continue reading Small Pixel Icons For Web Designers II

Add taxonomy columns to admin Edit pages

I’m currently using custom post types and taxonomies extensively on this site, so it is very important to me to be able to see how I have catalogued a post, as well as being able to single out specific post types with a given taxonomy term while editing. The ideal place for this to happen is in the Admin Edit page.

The following set of functions grabs a list of available taxonomies for a given `post_type` and automatically adds columns to the Edit pages. This updated version does not have column information that disappears after using the Quick Edit AJAX on the Edit page. In addition, I’ve updated the taxonomy term links to actually work as filters on taxonomy and term.

Continue reading Add taxonomy columns to admin Edit pages

List a post type object’s terms and taxonomies

The native WordPress functions [`wp_get_object_taxonomies`](http://codex.wordpress.org/Function_Reference/get_object_taxonomies), [`wp_get_object_terms`](http://codex.wordpress.org/Function_Reference/wp_get_object_terms), and [`get_the_term_list`](http://codex.wordpress.org/Function_Reference/get_the_term_list) can be used to create a generic function to list of all taxonomies and terms of any custom post type.

Continue reading List a post type object’s terms and taxonomies