Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function slider_custom_post() {
- register_post_type( 'slider-items',
- array(
- 'labels' => array(
- 'name' => __( 'Sliders' ),
- 'singular_name' => __( 'Slider' )
- ),
- 'public' => true,
- 'menu_icon' => 'dashicons-format-status',
- 'supports' => array('title', 'editor', 'custom-fields', 'comments', 'thumbnail'),
- 'taxonomies' => array('post_tag', 'category'),
- 'has_archive' => true,
- 'rewrite' => array('slug' => 'slider-item'),
- )
- );
- register_post_type( 'testimonial',
- array(
- 'labels' => array(
- 'name' => __( 'Testimonials' ),
- 'singular_name' => __( 'Testimonial' )
- ),
- 'public' => true,
- 'menu_icon' => 'dashicons-format-status',
- 'supports' => array('title', 'editor', 'custom-fields','comments', 'thumbnail'),
- 'taxonomies' => array('post_tag', 'category'),
- 'has_archive' => true,
- 'rewrite' => array('slug' => 'testimonial'),
- )
- );
- }
- add_action( 'init', 'slider_custom_post' );
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement