How to create a custom template for 2 diferent custom taxonomys

i use 2 custom taxonomys. first for topics (chordlist):

register_taxonomy(‘topics’,array(‘post’), array(
‘hierarchical’ => true,
‘labels’ => $labels,
‘show_ui’ => true,
‘show_admin_column’ => true,
‘query_var’ => true,
‘rewrite’ => array( ‘slug’ => ‘chordslist’ ),
));

taxonomy-topics.php as working
ex: mysite.com/chordslist/chord1 . And the second for videos:

register_taxonomy(‘videos’,array(‘videos’), array(
‘hierarchical’ => true,
‘labels’ => $labels,
‘show_ui’ => true,
‘show_admin_column’ => true,
‘query_var’ => true,
‘rewrite’ => array( ‘slug’ => ‘videos-category’ ),
));

but taxonomy-videos.php Error 404 page is displayed.
ex: mysite.com/videos/video1 .
How to solve this problem?

Read more here:: How to create a custom template for 2 diferent custom taxonomys

Leave a Reply

Your email address will not be published. Required fields are marked *