Custom Post Type Archive Page 404's and I don't know why?
-
Hi,
I’m building an e-commerce store for a client with a “product” custom-post-type. I’ve created the top-level archive page as indicated in the codex for the post-type and it is stored in my theme folder as “archive-product.php”
When I visit the url for my custom post-types archive page, which I believe should be: https://site/products, I get a 404.
Here is the code I’m using to create my custom-post-type:
The archive-product.php page doesn’t seem to be getting called when I visit https://site/products. Can anyone help me figure this out?
I have also attached a custom taxonomy of “catalog” as shown here:
register_taxonomy("catalog", "product", array("hierarchical" => true, "label" => "Catalogs", "singular_label" => "Catalog", "query_var" => true, "rewrite" => true));
Could this be changing the way wordpress handles my “product” post-type?
Much appreciated!
- The topic ‘Custom Post Type Archive Page 404's and I don't know why?’ is closed to new replies.