/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
// create custom post type function create_my_slides_types(){ register_post_type('slides', 'label' => __('Slides'), 'singular_label' => __('Slide'), 'public' => true, 'show_ui' => true, 'capability_type' => 'post', 'hierarchial' => false, 'title', 'editor', 'excerpt', 'custom-fields' ), 'slug' => 'slides', 'with_front' => false ), ) ); } add_action( 'init', 'create_my_slides_types' );