March 2020
Beginner
660 pages
18h 28m
English
Follow these steps to create a custom post type to manage custom content types for your application:
function wpccp_chapter7_book_post_type() { $labels = array( 'name' => _x( 'Books', 'Post Type General Name', 'wpccp_ch7' ), 'singular_name' => _x( 'Book', 'Post Type Singular Name', 'wpccp_ch7' ), 'menu_name' => __( 'Books', 'wpccp_ch7' ), 'name_admin_bar' => __( 'Book', 'wpccp_ch7' ), 'archives' => __( 'Book Archives', 'wpccp_ch7' ), ); $args = array( 'label' => __( 'Book', 'wpccp_ch7' ), 'description' => __( 'Book Description', 'wpccp_ch7' ), 'labels' => ...Read now
Unlock full access