Tag Archives: custom post types

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