hmbashar

Custom Post register

Dec 18th, 2015
135
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     register_post_type( 'portfolios',
  2.         array(
  3.             'labels' => array(
  4.                 'name' => __( 'Portfolio Items' ),
  5.                 'singular_name' => __( 'Portfolio Item' ),
  6.                 'add_new_item' => __( 'Add New Portfolio Item' )
  7.             ),
  8.             'public' => true,
  9.             'supports' => array('title', 'editor', 'custom-fields', 'thumbnail'),
  10.             'has_archive' => true,
  11.             'capability_type' => 'page',
  12.             'rewrite' => array('slug' => 'item'),
  13.            
  14.         )
RAW Paste Data