Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function create_my_post_types() {
- register_post_type(
- 'topics',
- array(
- 'label' => 'Topics',
- 'description' => '',
- 'public' => true,
- 'menu_icon' => get_bloginfo('template_directory') . '/images/help-icon.png',
- 'menu_order' => true,
- 'show_ui' => true,
- 'show_in_menu' => true,
- 'capability_type' => 'page',
- 'hierarchical' => true,
- 'has_archive' => true,
- 'rewrite' => array('slug' => ''),
- 'query_var' => true,
- 'supports' => array('title','editor','custom-fields','thumbnail','page-attributes',),
- 'labels' => array (
- 'name' => 'Topics',
- 'singular_name' => 'Topic',
- 'menu_name' => 'Topics',
- 'add_new' => 'Add topic',
- 'add_new_item' => 'Add new topic',
- 'edit' => 'Edit',
- 'edit_item' => 'Edit topic',
- 'new_item' => 'New topic',
- 'view' => 'View topic',
- 'view_item' => 'View topic',
- 'search_items' => 'Search topics',
- 'not_found' => 'No topics Found',
- 'not_found_in_trash' => 'No topics Found in Trash',
- 'parent' => 'Parent topic',
- ),) );
- }
Add Comment
Please, Sign In to add comment