Advertisement
Guest User

Untitled

a guest
Nov 12th, 2012
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 4.08 KB | None | 0 0
  1. //Movies Custom Post Type
  2. register_post_type('movies_cp', array(  'label' => 'Movie Posts','description' => '','public' => true,'show_ui' => true,'show_in_menu' => true,'capability_type' => 'post','hierarchical' => false,'rewrite' => array('slug' => 'movies'),'query_var' => true,'exclude_from_search' => false,'supports' => array('title','editor','excerpt','trackbacks','custom-fields','comments','revisions','thumbnail','author','page-attributes',),'taxonomies' => array('category','post_tag',),'labels' => array (
  3.   'name' => 'Movie Posts',
  4.   'singular_name' => 'Movie Post',
  5.   'menu_name' => 'Movie Posts',
  6.   'add_new' => 'Add Movie Post',
  7.   'add_new_item' => 'Add New Movie Post',
  8.   'edit' => 'Edit',
  9.   'edit_item' => 'Edit Movie Post',
  10.   'new_item' => 'New Movie Post',
  11.   'view' => 'View Movie Post',
  12.   'view_item' => 'View Movie Post',
  13.   'search_items' => 'Search Movie Posts',
  14.   'not_found' => 'No Movie Posts Found',
  15.   'not_found_in_trash' => 'No Movie Posts Found in Trash',
  16.   'parent' => 'Parent Movie Post',
  17. ),) );
  18.  
  19.  
  20. //Gaming Custom Post Type
  21. register_post_type('gaming_cp', array(  'label' => 'Gaming Posts','description' => '','public' => true,'show_ui' => true,'show_in_menu' => true,'capability_type' => 'post','hierarchical' => false,'rewrite' => array('slug' => 'gaming'),'query_var' => true,'exclude_from_search' => false,'supports' => array('title','editor','excerpt','trackbacks','custom-fields','comments','revisions','thumbnail','author','page-attributes',),'taxonomies' => array('category','post_tag',),'labels' => array (
  22.   'name' => 'Gaming Posts',
  23.   'singular_name' => 'Gaming Post',
  24.   'menu_name' => 'Gaming Posts',
  25.   'add_new' => 'Add Gaming Post',
  26.   'add_new_item' => 'Add New Gaming Post',
  27.   'edit' => 'Edit',
  28.   'edit_item' => 'Edit Gaming Post',
  29.   'new_item' => 'New Gaming Post',
  30.   'view' => 'View Gaming Post',
  31.   'view_item' => 'View Gaming Post',
  32.   'search_items' => 'Search Gaming Posts',
  33.   'not_found' => 'No Gaming Posts Found',
  34.   'not_found_in_trash' => 'No Gaming Posts Found in Trash',
  35.   'parent' => 'Parent Gaming Post',
  36. ),) );
  37.  
  38.  
  39. //Blu-ray Custom Post Type
  40. register_post_type('blu-ray_cp', array( 'label' => 'Blu-Ray Posts','description' => '','public' => true,'show_ui' => true,'show_in_menu' => true,'capability_type' => 'post','hierarchical' => false,'rewrite' => array('slug' => 'blu-ray'),'query_var' => true,'exclude_from_search' => false,'supports' => array('title','editor','excerpt','trackbacks','custom-fields','comments','revisions','thumbnail','author','page-attributes',),'taxonomies' => array('category','post_tag',),'labels' => array (
  41.   'name' => 'Blu-Ray Posts',
  42.   'singular_name' => 'Blu-Ray Post',
  43.   'menu_name' => 'Blu-Ray Posts',
  44.   'add_new' => 'Add Blu-Ray Post',
  45.   'add_new_item' => 'Add New Blu-Ray Post',
  46.   'edit' => 'Edit',
  47.   'edit_item' => 'Edit Blu-Ray Post',
  48.   'new_item' => 'New Blu-Ray Post',
  49.   'view' => 'View Blu-Ray Post',
  50.   'view_item' => 'View Blu-Ray Post',
  51.   'search_items' => 'Search Blu-Ray Posts',
  52.   'not_found' => 'No Blu-Ray Posts Found',
  53.   'not_found_in_trash' => 'No Blu-Ray Posts Found in Trash',
  54.   'parent' => 'Parent Blu-Ray Post',
  55. ),) );
  56.  
  57.  
  58. //TV Custom Post Type
  59. register_post_type('tv_cp', array(  'label' => 'TV Posts','description' => '','public' => true,'show_ui' => true,'show_in_menu' => true,'capability_type' => 'post','hierarchical' => false,'rewrite' => array('slug' => 'tv'),'query_var' => true,'exclude_from_search' => false,'supports' => array('title','editor','excerpt','trackbacks','custom-fields','comments','revisions','thumbnail','author','page-attributes',),'taxonomies' => array('category','post_tag',),'labels' => array (
  60.   'name' => 'TV Posts',
  61.   'singular_name' => 'TV Post',
  62.   'menu_name' => 'TV Posts',
  63.   'add_new' => 'Add TV Post',
  64.   'add_new_item' => 'Add New TV Post',
  65.   'edit' => 'Edit',
  66.   'edit_item' => 'Edit TV Post',
  67.   'new_item' => 'New TV Post',
  68.   'view' => 'View TV Post',
  69.   'view_item' => 'View TV Post',
  70.   'search_items' => 'Search TV Posts',
  71.   'not_found' => 'No TV Posts Found',
  72.   'not_found_in_trash' => 'No TV Posts Found in Trash',
  73.   'parent' => 'Parent TV Post',
  74. ),) );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement