Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*************************** Portfolio Post Type ***************************/
- register_post_type('portfolio', array(
- 'labels' => array('name' => __('Portfolio Items', 'gp_lang'), 'singular_label' => __('Portfolio Item', 'gp_lang'), 'add_new_item' => __('Add Portfolio Item', 'gp_lang'), 'edit_item' => __('Edit Portfolio Item', 'gp_lang'), 'search_items' => __( 'Search Portfolio Items', 'gp_lang')),
- 'public' => true,
- 'show_ui' => true,
- '_builtin' => false,
- '_edit_link' => 'post.php?post=%d',
- 'capability_type' => 'post',
- 'hierarchical' => false,
- 'rewrite' => array('slug' => $theme_portfolio_slug),
- 'menu_position' => 20,
- 'with_front' => true,
- 'supports' => array('title', 'editor', 'comments', 'author', 'custom-fields', 'thumbnail'),
- 'taxonomies' => array('post_tag')
- ));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement