Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Enable theme support shit
- add_theme_support( 'menus' );
- add_theme_support('post-thumbnails', array('post','portfolio'));
- // Portfolio Custom Post Type
- add_action('init', 'create_portfolio');
- function create_portfolio() {
- $portfolio_args = array(
- 'label' => __('Portfolio'),
- 'singular_label' => __('Portfolio'),
- 'public' => true,
- 'show_ui' => true,
- 'capability_type' => 'post',
- 'hierarchical' => false,
- 'rewrite' => true,
- 'supports' => array(
- 'title',
- 'editor',
- 'thumbnail')
- );
- register_post_type('portfolio',$portfolio_args);
- }
Add Comment
Please, Sign In to add comment