Skip to content

Instantly share code, notes, and snippets.

@jamesmthornton
Last active February 12, 2018 19:44
Show Gist options
  • Save jamesmthornton/abfdcba74ccb58a662b5 to your computer and use it in GitHub Desktop.
Save jamesmthornton/abfdcba74ccb58a662b5 to your computer and use it in GitHub Desktop.
team profiles functions.php customizations for genesis wordpress
<?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