Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_action( 'init', 'create_spotlight' );
- function create_spotlight() {
- $labels = array(
- 'name' => _x('Spotlight Items', 'post type general name'),
- 'singular_name' => _x('Spotlight', 'post type singular name'),
- 'add_new' => _x('Add New', 'Spotlight Item'),
- 'add_new_item' => __('Add New Spotlight Item'),
- 'edit_item' => __('Edit Spotlight Item'),
- 'new_item' => __('New Spotlight Item'),
- 'view_item' => __('View Spotlight Item'),
- 'search_items' => __('Search Spotlight Items'),
- 'not_found' => __('No Spotlight Items found'),
- 'not_found_in_trash' => __('No Spotlight Items found in Trash'),
- 'parent_item_colon' => ''
- );
- $supports = array('title','editor','custom-fields','author','thumbnail');
- register_post_type( 'spotlight',
- array(
- 'labels' => $labels,
- 'public' => true,
- 'menu_position' => 20,
- 'supports' => $supports
- )
- );
- }
- /* CUSTOM POST TYPE : COOKING VIDEOS */
- // Register event post type //
- add_action( 'init', 'create_cookingvideo' );
- function create_cookingvideo() {
- $labels = array(
- 'name' => _x('Cooking Videos', 'post type general name'),
- 'singular_name' => _x('Cooking Video', 'post type singular name'),
- 'add_new' => _x('Add New', 'Cooking Video'),
- 'add_new_item' => __('Add New Cooking Video'),
- 'edit_item' => __('Edit Cooking Video'),
- 'new_item' => __('New Cooking Video'),
- 'view_item' => __('View Cooking Video'),
- 'search_items' => __('Search Cooking Video'),
- 'not_found' => __('No Cooking Videos found'),
- 'not_found_in_trash' => __('No Cooking Videos found in Trash'),
- 'parent_item_colon' => ''
- );
- $supports = array('title','editor','custom-fields','author','thumbnail');
- register_post_type( 'cookingvideo',
- array(
- 'labels' => $labels,
- 'public' => true,
- 'menu_position' => 20,
- 'supports' => $supports
- )
- );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement