how can create custom post type in wordpress without plugin ( Update 2019 )

how can create custom post type in wordpress without plugin ( Update 2019 )

Sharing is caring!

how are you all? I hope everyone is good? Do you want to? create custom post type in wordpress without a plugin ? Or create custom post type in wordpress with a plugin click here?   

If you want to create custom post type in wordpress without plugin. Use the code in show under below .


function snhaasn_custom_post() {

register_post_type( ‘slider’,
array(
‘labels’ => array(
‘name’ => __( ‘Slider’ ),
‘singular_name’ => __( ‘slider’ )
),
‘supports’ => array(‘title’, ‘editor’, ‘thumbnail’, ‘page-attributes’),
‘public’ => false,
‘show_ui’ => true,
)
);

}

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *

7 − one =

shares