• Resolved Mehrdad M Raad

    (@mehrdadmraad)


    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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Mehrdad M Raad

    (@mehrdadmraad)

    Resolved by finding the correct attachment taxonomy names which are attachment_category and attachment_tag, thanks again

    Plugin Author David Lingren

    (@dglingren)

    Thanks for finding and fixing the problem while I was traveling. I will leave this topic resolved, but if you have problems or further questions post an update or start a new topic. Thanks for the kind words and for your interest in the plugin.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Storefront and Att Category’ is closed to new replies.