post type query wordpress code example
Example 1: wp_query custom post type
//WordPress: Query a custom post type
//For example, query all Case Study post types
<?php query_posts('post_type=case_studies'); ?>
Example 2: custom post type query loop wordpress
Custom Post Type Query Loop