Am I using taxonomies correctly?

Hi everyone! I have a problem that’s driving me nuts

I have registered my custom post type in my child theme, with corresponding custom taxonomies

$args = array(
        'label'               => __( 'articles', 'onepress-child' ),
         
        'taxonomies'          => array( 'publications' ),
        
        'other_stuff'         => {...}
 
    );
    
    register_taxonomy('publications','articles', array(
    	'hierarchical' => false,
    	'labels' => $labels,
    	'show_ui' => true,
    	'show_in_rest' => true,
    	'show_admin_column' => true,
    	'update_count_callback' => '_update_post_term_count',
    	'query_var' => true,
    	'rewrite' => array( ),
  	 ));
    // Registering your Custom Post Type
    register_post_type( 'publications', $args ); 

I’ve also made single-articles.php and taxonomy-publications.php

So far so good, but both localhost/articles and localhost/publications show 404

Am I correct in saying that localhost/publications should load the taxonomy-publications.php template?



Source link