• Resolved Revived

    (@revived)


    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)
  • Plugin Author BjornW

    (@bjornw)

    @revived:
    You can use the default tags with your own custom post types such as the one you’ve created. This is similar to my plugin except I’m adding the default tags to the default pages. In your case you can add the default tags to your Book custom post type.

Viewing 1 replies (of 1 total)
  • The topic ‘Possible to modify to use with custom post type?’ is closed to new replies.