カスタム投稿タイプとは? WordPress 3.0からの新機能で、従来のブログ記事(ポスト)と固定ページ(ページ)というふたつの投稿タイプに加え、この投稿タイプを自分で追加できるようになりました。 このカスタム投稿タイプを使えば、自分で投稿タイプを追加できるのでコンテンツの入力や管理がとっても楽になるし、カスタム投稿タイプによってテーマをカスタマイズできるというメリットがあります。 functions.php に以下を追加する方法 /* カスタム投稿タイプの追加 */ add_action( 'init', 'create_post_type' ); function create_post_type() { register_post_type( 'books', /* post-type */ array( 'labels' => array( 'name' => __( '本' )