1 $args=array(
2 'posts_per_page' => 50,
3 'post_type' => 'my_custom_type'
4 'cat' => $cat_id,
5);
6$wp_query = new WP_Query( $args );
7
1//WordPress: Query a specific post by its post type & ID
2//For example, query Case Study with ID #12345
3
4<?php query_posts('post_type=case_studies&p=12345'); ?>
5
6/*To determine a post ID, refer to the
7URL of the post while editing it:
8http://localhost...wp-admin/post.php?post=12345...*/