__('Team', 'bigblank'), 'singular_name' => __('Team', 'bigblank'), 'add_new' => __('Add New', 'bigblank'), 'add_new_item' => __('Add New Profile', 'bigblank'), 'edit_item' => __('Edit Profile', 'bigblank'), 'new_item' => __('New Profile', 'bigblank'), 'all_items' => __('All Profiles', 'bigblank'), 'view_item' => __('View Profile', 'bigblank'), 'search_items' => __('Search Profiles', 'bigblank'), 'not_found' => __('No profile was found', 'bigblank'), 'not_found_in_trash' => __('No profile was found in Trash', 'bigblank'), 'parent_item_colon' => '', 'menu_name' => __('Team', 'bigblank') ); $teamArgs = array( 'labels' => $teamLabels, 'public' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'show_ui' => true, 'show_in_menu' => true, 'show_in_nav_menus' => true, 'menu_icon' => 'dashicons-businessman', 'query_var' => true, 'rewrite' => array('slug' => 'team'), 'has_archive' => false, 'hierarchical' => false, 'supports' => array( 'title', 'editor', 'author', 'thumbnail', 'excerpt', // 'trackbacks', 'custom-fields', // 'comments', 'revisions', // 'page-attributes', // 'post-formats', ) ); register_post_type('team', $teamArgs); } add_action('init', 'bigblank_register_post_type'); /** * To get permalinks to work when you activate the theme */ if (!function_exists('bigblank_rewrite_flush')){ function bigblank_rewrite_flush() { flush_rewrite_rules(); } } add_action('after_switch_theme', 'bigblank_rewrite_flush'); function bigblank_print($title = '', $before = '', $after = '', $echo = true) { if (strlen($title) == 0) return; $title = $before . $title . $after; if ($echo) echo $title; else return $title; }