Skip to content

Lumberjack doesn't see archive-{post_type}.php with proper controller class #21

@mrkkr

Description

@mrkkr

What are the steps to reproduce this issue?

  1. Add WooCommerce
  2. Create archive-product.php file
  3. Create ArchiveProductController class in this file
  4. Go to /product-category/some-category/

What happens?
Lumberjack doesn't see archive-product.php, it is looking for archive.php or index.php. It's not in line with the templatee hierarchy (please look at https://developer.wordpress.org/themes/basics/template-hierarchy/#custom-post-types)

What were you expecting to happen?
Lumberjack should looking for archive-product.php and ArchiveProductController class.

What versions of software are you using?

Operating System: Win10, Apache (XAMMP)

PHP Version: 7.2

Lumberjack Version: latest

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions