Advertisement
hmbashar

Custom Post register

Dec 18th, 2015
393
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.42 KB | None | 0 0
  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.         )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement