Currently Browsing: Uncategorized

howto

Adding a custom post type as a sub-menu of Posts

Here we set the “movies” post type to be included in the sub-menu under Posts. register_post_type( ‘movies’, array( ‘labels’ => array( ‘name’ => __( ‘Movies’ ), ‘singular_name’ => __( ‘Movie’ ) ), ‘public’ => true, ‘has_archive’ => true, ‘show_in_menu’ => ‘edit.php’ ) ); If you have a taxonomy registered to the custom post type it […]