Custom post type with category template
-
Hi
I have a custom post type called asset. it uses the standard wordpress categoryfunction post_type_asset_page() { register_post_type( 'asset_page', array( 'label' => __('Asset Pages'), 'description' => __('Create an asset Page.'), 'public' => true, 'show_ui' => true, 'capability_type' => 'post', 'has_archive' => true, 'taxonomies' => array('category'), 'rewrite' => array( 'slug' => 'asset' // This controls the base slug that will display before each term ), 'supports' => array ( 'title', 'editor', 'custom-fields', 'revisions', 'thumbnail' ) ) ); } endif; add_action('init', 'post_type_asset_page');I have a template called archive-asset.php, but I want to make a page for the category webinar.
I tried called the template taxonomy-category-webinar.php but that didn’t work. What do I call the template to make a category page for my custom post type?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Custom post type with category template’ is closed to new replies.