Last active
February 12, 2018 19:44
-
-
Save jamesmthornton/abfdcba74ccb58a662b5 to your computer and use it in GitHub Desktop.
team profiles functions.php customizations for genesis wordpress
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'init', 'team_post_type', 0 ); | |
function team_post_type() { | |
// Create labels for your custom fields | |
$labels = array( | |
'name' => _x("Team", "post type general name"), | |
'singular_name' => _x("Team", "post type singular name"), | |
'menu_name' => 'Team Profiles', | |
'add_new' => _x("Add New", "team item"), | |
'add_new_item' => __("Add New Profile"), | |
'edit_item' => __("Edit Profile"), | |
'new_item' => __("New Profile"), | |
'view_item' => __("View Profile"), | |
'search_items' => __("Search Profiles"), | |
'not_found' => __("No Profiles Found"), | |
'not_found_in_trash' => __("No Profiles Found in Trash"), | |
'parent_item_colon' => '' | |
); | |
// Register post type array for use. | |
register_post_type('team' , array( | |
'labels' => $labels, | |
'public' => true, | |
'has_archive' => false, | |
'menu_icon' => false, | |
'rewrite' => false, | |
'supports' => array('title', 'editor', 'thumbnail') | |
) ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment