Skip to content

Instantly share code, notes, and snippets.

@alessandrotesoro
Created November 17, 2014 11:25
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 alessandrotesoro/9b9debcd2f9fc5c95033 to your computer and use it in GitHub Desktop.
Save alessandrotesoro/9b9debcd2f9fc5c95033 to your computer and use it in GitHub Desktop.
$listings = new CPT(
'listing', array(
'supports' => array('title', 'editor', 'thumbnail', 'comments', 'author','custom-fields','tags'),
'menu_icon' => get_template_directory_uri() . '/images/listings_icon.png',
'labels' => array(
'name' => 'Books',
'singular_name' => 'Book',
'add_new' => 'Add New',
'add_new_item' => 'Add New Book',
'edit_item' => 'Edit Book',
'new_item' => 'New Book',
'all_items' => 'All Books',
'view_item' => 'View Book',
'search_items' => 'Search Books',
'not_found' => 'No books found',
'not_found_in_trash' => 'No books found in Trash',
'parent_item_colon' => '',
'menu_name' => 'Books'
)
));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment