Les types de publication WordPress prennent en charge la miniature

 <?php 
$args = array(
  /* ... */
  'supports' => array( 'title', 'editor', 'author', 'thumbnail', 'excerpt', 'comments' )
 ); 
  register_post_type('book',$args);
}
add_action( 'init', 'custom_post_init' );
gtamborero