Storefront and Att Category
-
Hi,
I’m using the brilliant mla plugin, but when trying to use taxonomy.php as the taxonomy template (instead of archive.php) in my storefront-child theme, always getting 404 Not Found! Attachment taxonomy is not using the theme’s default archive.php too which it is assumed to!
I also tried to use taxonomy-attachment.php but same problem!
The problem gets more complicated when I changed the base slug from “attachment_category” to something else like “media” using the following code:
add_filter( ‘mla_attachment_category_arguments’, ‘mla_attachment_category_arguments’, 10, 1 );
function mla_attachment_category_arguments( $args ) {
$args[‘rewrite’] = array( ‘slug’ => ‘media’ );
return $args;
}The slug change works properly but now I’m getting “Nothing Found” and a search bar in my page instead of “404 Not Found”!
Default archive.php of storefront theme works properly with ordinary post categories, although according to WP Taxonomy Template Hierarchy, it should use taxonomy.php because this file has higher priority, but always uses archive.php!
I have woocommerce in my project and its taxonomy template (archive-product.php) works fine!
Would you please tell me what’s going wrong and how should I figure it out?
Thanx
- The topic ‘Storefront and Att Category’ is closed to new replies.