Last active
May 21, 2016 09:30
-
-
Save mustafix/dabe1f1dc4bc9b1669f2bb5895f9dc5c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function register_custom_posts(){ | |
register_post_type('services', | |
array( | |
'labels' =>array( | |
'name' =>('Services'), // Display Name | |
'singular-name' =>('Service'), | |
'add_new' =>('Add New Service'), | |
'add_new_item' =>('Add New Service Item'), | |
'all_items' => ('All Items'), | |
'edit_item' =>('Edit Service Item'), | |
'new_item' =>('New Service Item'), | |
'view_item' =>('View Service Item'), | |
'not_found' =>('Sorry,we could not find the Service items ') | |
), | |
'public' => true, | |
'has_archive' => false, | |
'show_ui' => true, | |
'query_var' => true, | |
'publicly_queryable' => true, | |
'exclude_from_search' => true, | |
'show_ui' => true, | |
'show_in_menu' => true, | |
'hierarchical' => false, | |
'capability_type' => 'post', | |
'menu_icon' => 'dashicons-calendar', | |
'menu_position' => 8, | |
'taxonomies' => array('prefix_portfolio_categories'), | |
'rewrite' => array('slug'=>'service-item'), | |
'supports' => array('title', 'editor', 'custom-fields','author', 'excerpt', 'thumbnail', 'headway-seo', 'comments' ) | |
)); | |
} | |
add_action( 'init', 'register_custom_posts' ); | |
?> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment