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.
Custom Post Type Creator Features:
- Create and edit Custom Post Types from the Admin UI
- Advanced Labeling Options
- Attach built in or custom taxonomies to post types
Querying by post type in the frontend
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.
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 '
‘; the_content(); echo ‘
This simply loops through the latest 10 product posts and displays the title and content of them.