Add CATT faculty

<?php

/*
——————————————————————-
Add Custom Post Type – CATT Directory
——————————————————————-
*/

add_action( ‘init’, ‘register_cpt_faculty’ );

function register_cpt_faculty() {

$labels = array(
‘name’ => _x( ‘Faculty’, ‘faculty’ ),
‘singular_name’ => _x( ‘Faculty’, ‘faculty’ ),
‘add_new’ => _x( ‘Add Faculty’, ‘faculty’ ),
‘add_new_item’ => _x( ‘Add Faculty’, ‘faculty’ ),
‘edit_item’ => _x( ‘Edit Faculty’, ‘faculty’ ),
‘new_item’ => _x( ‘New Faculty’, ‘faculty’ ),
‘view_item’ => _x( ‘View Faculty’, ‘faculty’ ),
‘search_items’ => _x( ‘Search Faculty’, ‘faculty’ ),
‘not_found’ => _x( ‘No Faculty found’, ‘faculty’ ),
‘not_found_in_trash’ => _x( ‘No Faculty found in trash’, ‘faculty’ ),
‘parent_item_colon’ => _x( ‘Parent Faculty:’, ‘faculty’ ),
‘menu_name’ => _x( ‘Certified Anusara Yoga Teacher Trainer Directory’, ‘faculty’ ),
);

$args = array(
‘labels’ => $labels,
‘hierarchical’ => false,
‘supports’ => array( ‘title’, ‘editor’, ‘excerpt’, ‘thumbnail’ ),
‘public’ => true,
‘show_ui’ => true,
‘show_in_menu’ => true,
‘menu_position’ => 20,
‘show_in_nav_menus’ => true,
‘publicly_queryable’ => true,
‘exclude_from_search’ => true,
‘has_archive’ => true,
‘query_var’ => true,
‘can_export’ => true,
‘taxonomies’ => array(‘category, post_tags’),
‘rewrite’ => array(‘slug’ => ‘faculty’, ‘with_front’ => FALSE),
‘capability_type’ => ‘post’
);

register_post_type( ‘faculty’, $args );
}
//Add Meta Boxes

function wphandcrafted_metaboxes( $meta_boxes ) {
$prefix = ‘faculty_’; // Prefix for all fields
$meta_boxes[] = array(
‘id’ => ‘faculty_details’,
‘title’ => ‘Faculty Details’,
‘pages’ => array(‘faculty’), // post type
‘context’ => ‘normal’,
‘priority’ => ‘high’,
‘show_names’ => true, // Show field names on the left
‘fields’ => array(

array(
‘name’ => ‘Faculty Website:’,
‘desc’ => ‘Short and Pretty URL: anusarayoga.com’,
‘id’ => $prefix . ‘url’,
‘type’ => ‘text’
),
),
);

return $meta_boxes;
}
add_filter( ‘cmb_meta_boxes’, ‘wphandcrafted_metaboxes’ );

add_action( ‘init’, ‘be_initialize_cmb_meta_boxes’, 9999 );

function be_initialize_cmb_meta_boxes() {
if ( !class_exists( ‘cmb_Meta_Box’ ) ) {
require_once( ‘init.php’ );
}
}

?>