Possible to modify to use with custom post type?
-
I have a custom post type called “Books”. Is it possible to modify this plugin to use with that? Here’s the code I use:
function yotuwp_books_create_posttype() { register_post_type( 'books', array( 'labels' => array( 'name' => __( 'Books', 'yotuwp' ), 'singular_name' => __( 'Book', 'yotuwp' ), 'add_new' => __('Add New', 'yotuwp'), 'add_new_item' => __('Add New Book', 'yotuwp'), 'edit_item' => __('Edit Book', 'yotuwp'), 'new_item' => __('New Book', 'yotuwp'), 'view_item' => __('View Book', 'yotuwp'), 'search_items' => __('Search Books', 'yotuwp'), 'not_found' => __('No books found', 'yotuwp'), 'not_found_in_trash' => __('No books found in Trash', 'yotuwp'), ), 'public' => true, 'has_archive' => true, 'supports' => array('title','editor','thumbnail', 'excerpt'), 'rewrite' => array('slug' => 'books'), ) ); } add_action( 'init', 'yotuwp_books_create_posttype' );
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Possible to modify to use with custom post type?’ is closed to new replies.