forked from gizburdt/cuztom
-
Notifications
You must be signed in to change notification settings - Fork 2
Post Types
Gizburdt edited this page Jul 28, 2012
·
3 revisions
The main goal of Cuztom Helper is to register Custom Post Types. This can easily be done with the Cuztom_Post_Type class:
$book = new Cuztom_Post_Type( 'Book' );
As second parameter you can pass some arguments. Take a look here to see which arguments are available.
$book = new Cuztom_Post_Type( 'Book', array(
'has_archive' => true,
'supports' => array( 'title', 'editor', 'thumbnail' )
) );
The third parameter can be used to pass cuztom labels. If you don't set the labels yourself, Cuztom will do it for you. To see which labals can be used, take a look here