Create Custom Post Types

Overview of Custom Post Type Creator

WCK 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.

WordPress Creation Kit - Custom Post Type Creator - Overview

Features of Custom Post Type Creator

    1. Create and edit Custom Post Types from the Admin UI

WordPress Creation Kit - Custom Post Type Creator - Features

    1. Advanced Labeling Options

WordPress Creation Kit - Custom Post Type Creator - Labels

    1. Attach built in or custom taxonomies to post types

WordPress Creation Kit - Custom Post Type Creator - Options

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().

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 '
‘; the_content(); echo ‘

‘; endwhile;

This simply loops through the latest 10 product posts and displays the title and content of them.