Skip to content

Instantly share code, notes, and snippets.

@richardegil
Created November 20, 2012 16:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save richardegil/4119147 to your computer and use it in GitHub Desktop.
Save richardegil/4119147 to your computer and use it in GitHub Desktop.
For Carlos - CPT additions
Carlos,
I added a third array to the initial setup of the Faculty cpt.
The file you need to edit is: /includes/cpt/faculty.php
$faculty = register_cuztom_post_type(
'faculty',
array(
'has_archive' => false,
'supports' => array ('title', 'excerpt', 'thumbnail'),
'rewrite' => array (
'slug' => 'faculty',
'with_front' => false
)
),
//This is the array that I added.
array(
'name' => 'Faculty Profiles',
'menu_name' => 'Faculty Profiles',
'all_items' => 'All Faculty Profiles'
)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment