Monthly Archives: August 2010

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

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