Register custom post type in Wordpress
add_action( 'init', 'create_post_type' );
function create_post_type() {
add_theme_support('post-thumbnails');
register_post_type( 'product',
array(
'labels' => array(
'name' => __( 'Products' ),
'singular_name' => __( 'Product' )
),
'public' => true,
'has_archive' => true,
'supports' => array( 'title', 'editor','thumbnail', 'custom-fields' )
)
);
}
add_action( 'init', 'create_post_type' );
function create_post_type() {
add_theme_support('post-thumbnails');
register_post_type( 'product',
array(
'labels' => array(
'name' => __( 'Products' ),
'singular_name' => __( 'Product' )
),
'public' => true,
'has_archive' => true,
'supports' => array( 'title', 'editor','thumbnail', 'custom-fields' )
)
);
}
Register custom post type in Wordpress Is Very Helpful. Thanks for such Information
ReplyDeleteLooking for WordPress Support Visit :
WordPress Support
WordPress Technical Support
WordPress Support Phone Number
Superb Information
ReplyDeleteWP Support