Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Register Custom Post
- add_action( 'init', 'technotiers_create_post_type' );
- function technotiers_create_post_type() {
- // project section
- register_post_type( 'project',
- array(
- 'labels' => array(
- 'name' => __( 'Project' ),
- 'singular_name' => __( 'project' ),
- 'add_new_item' => __( 'Add New Project' )
- ),
- 'public' => true,
- 'menu_icon' => get_stylesheet_directory_uri(). '/images/post-icon/portfolio.png',
- 'menu_position' => 5,
- 'supports' => array( 'title', 'editor', 'thumbnail'),
- 'has_archive' => true,
- )
- );
- }
Add Comment
Please, Sign In to add comment