Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php add_action( 'init', 'create_my_post_types' );
- function create_my_post_types() {
- register_post_type( 'fire_alarms',
- array(
- 'labels' => array(
- 'name' => __( 'Fire Alarms' ),
- 'singular_name' => __( 'Fire Alarm' ),
- 'add_new_item' => __( 'Add New Fire Alarm' ),
- 'edit_item' => __( 'Edit Fire Alarm' )
- ),
- 'show_ui' => true,
- 'public' => true,
- 'has_archive' => true,
- 'supports' => array('title', 'editor', 'author', 'custom-fields', 'thumbnail', 'comments', 'revisions', 'trackbacks'),
- )
- );
- register_post_type( 'photo_features',
- array(
- 'labels' => array(
- 'name' => __( 'Photo Features' ),
- 'singular_name' => __( 'Photo Feature' ),
- 'add_new_item' => __( 'Add New Photo Feature' ),
- 'edit_item' => __( 'Edit Photo Feature' )
- ),
- 'show_ui' => true,
- 'public' => true,
- 'has_archive' => true,
- 'supports' => array('title', 'editor', 'author', 'custom-fields', 'thumbnail', 'comments', 'revisions', 'trackbacks'),
- )
- );
- register_post_type( 'quote_articles',
- array(
- 'labels' => array(
- 'name' => __( 'Quote Articles' ),
- 'singular_name' => __( 'Quote Article' ),
- 'add_new_item' => __( 'Add New Quote Article' ),
- 'edit_item' => __( 'Edit Quote Article' )
- ),
- 'show_ui' => true,
- 'public' => true,
- 'has_archive' => true,
- 'supports' => array('title', 'editor', 'author', 'custom-fields', 'thumbnail', 'comments', 'revisions', 'trackbacks'),
- ),
- $args = array(
- 'publicly_queryable' => true,
- 'query_var' => true,
- 'rewrite' => false,
- )
- );
- register_post_type( 'site_updates',
- array(
- 'labels' => array(
- 'name' => __( 'Site Updates' ),
- 'singular_name' => __( 'Site Update' ),
- 'add_new_item' => __( 'Add New Site Update' ),
- 'edit_item' => __( 'Edit Site Update' )
- ),
- 'show_ui' => true,
- 'public' => true,
- 'has_archive' => true,
- 'supports' => array('title', 'editor', 'author', 'custom-fields', 'revisions'),
- )
- );
- register_post_type( 'splash_photos',
- array(
- 'labels' => array(
- 'name' => __( 'Splash Photos' ),
- 'singular_name' => __( 'Splash Photo' ),
- 'add_new_item' => __( 'Add New Splash Photo' ),
- 'edit_item' => __( 'Edit Splash Photo' )
- ),
- 'show_ui' => true,
- 'public' => true,
- 'has_archive' => true,
- 'supports' => array('title', 'editor', 'author', 'custom-fields', 'thumbnail', 'comments', 'revisions', 'trackbacks'),
- )
- );
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement