Skip Navigation

[Resolved] Cannot Create Woocommerce Archive -“The archive is disabled for this post type”

This thread is resolved. Here is a description of the problem and solution.

Problem: I cannot create a WooCommerce Archive from the Toolset Dashboard. I see "the archive is disabled for this post type".

Solution: This appears to be a theme compatibility issue. The client was able to add the following custom code to resolve the problem:

add_action( 'after_setup_theme', function() {
    add_theme_support( 'woocommerce' );
} );

100% of people find this useful.

This support ticket is created 6 years ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 2 replies, has 2 voices.

Last updated by rusty 6 years ago.

Assisted by: Christian Cox.

Author
Posts
#1174593
Screen Shot 2018-12-29 at 12.37.12 PM.png

I am trying to: Create a shop page for Woocommerce using this tutorial:https://toolset.com/learn/create-an-ecommerce-wordpress-site/designing-woocommerce-product-catalog/

Link to a page where the issue can be seen: local server

I expected to see: Toolset Dashboard > Custom post types created by the theme and other plugins
> Products > Archive > "Create archive" button.

Instead, I got: "The archive is disabled for this post type." No button to create an archive.

#1174885

Hi, sometimes there is an unexpected theme compatibility issue that causes this problem. Can you try these troubleshooting steps first?
- Update Types to the latest version.
- Temporarily deactivate all plugins except Types, Views, Woocommerce Views, and WooCommerce. Temporarily activate a default theme like Twenty Nineteen.
- Visit the Toolset dashboard page again and check the product archive message again. If the problem is resolved, reactivate your theme and other plugins one by one until the problem returns. If the problem is not resolved, I'll take a closer look.

#1175440

Yup. The theme. After some research, I found that I simply needed to add theme support with the following code in my functions.php file:

add_action( 'after_setup_theme', function() {
	add_theme_support( 'woocommerce' );
} );