functions.phpに以下を追加します。
```php
function create_custom_post_type() {
$args = array(
'labels' => array('name' => '商品', 'singular_name' => '商品'),
'public' => true,
'has_archive' => true,
'supports' => array('title', 'editor', 'thumbnail'),
);
register_post_type('product', $args);
}
add_action('init', 'create_custom_post_type');
```
カスタムタクソノミーは`register_taxonomy('genre', 'product', $taxonomy_args);`で実装します。固定ページテンプレートはテーマフォルダに`single-product.php`として作成し、カスタム投稿タイプの表示をカスタマイズします。