< ?php $loop = new WP_Query( array( 'post_type' => 'pa', 'posts_per_page' => 6 ) ); ?> < ?php while ( $loop->have_posts() ) : $loop->the_post(); ?> stuff here < ?php $post->ID; get_the_title(); get_permalink(); ?> < ?php endwhile; wp_reset_query(); ?>