Custom Post Type Creator allows you to easily create custom post types for WordPress without any programming knowledge. It provides an UI for most of the arguments of register_post_type() function.
You can create new queries to display posts from a specific post type. This is done via the “post_type” parameter to a WP_Query.
Example:
1 2 3 4 5 | $args = array( 'post_type' => 'product', 'posts_per_page' => 10 ); $loop = new WP_Query( $args ); while ( $loop->have_posts() ) : $loop->the_post(); the_title(); echo ' |
‘; endwhile;
This simply loops through the latest 10 product posts and displays the title and content of them.