Guest User

Untitled

a guest
Jan 20th, 2019
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. //Enable theme support shit
  2. add_theme_support( 'menus' );
  3. add_theme_support('post-thumbnails', array('post','portfolio'));
  4.  
  5. // Portfolio Custom Post Type
  6. add_action('init', 'create_portfolio');
  7. function create_portfolio() {
  8. $portfolio_args = array(
  9. 'label' => __('Portfolio'),
  10. 'singular_label' => __('Portfolio'),
  11. 'public' => true,
  12. 'show_ui' => true,
  13. 'capability_type' => 'post',
  14. 'hierarchical' => false,
  15. 'rewrite' => true,
  16. 'supports' => array(
  17. 'title',
  18. 'editor',
  19. 'thumbnail')
  20. );
  21. register_post_type('portfolio',$portfolio_args);
  22. }
Add Comment
Please, Sign In to add comment