Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function custom_post_type()
- {
- $labels_frontpage = array(
- 'name' => 'Partners',
- 'name' => 'Services',
- );
- register_post_type('partners', array(
- 'labels' => $labels_frontpage,
- 'public' => true,
- 'has_archive' => true,
- 'publicly_queryable' => true,
- 'query_var' => true,
- 'rewrite' => true,
- 'capability_type' => 'post',
- 'hierarchical' => false,
- 'supports' => array(
- 'title',
- 'editor',
- 'excerpt',
- 'thumbnail',
- 'revisions',
- ),
- 'menu_position' => 7,
- 'exclude_from_search' => false,
- 'menu_icon' => 'dashicons-format-gallery',
- ));
- }
- add_action('init', 'custom_post_type');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement