Skip Navigation

[Resolved] Can’t disable has_archive

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

Problem:
Can't disable has_archive

Solution:
The fix for this issue is shipped with Toolset Types version 3.4.9.

Relevant Documentation:

This support ticket is created 4 years, 4 months 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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 2 replies, has 2 voices.

Last updated by nadiaK 4 years, 4 months ago.

Assisted by: Minesh.

Author
Posts
#2036129

I'm attempting to turn off archives for two custom post types that have already been created. After I uncheck the "has_archive" option and click "Save Post Type," the "has_archive" checkbox is checked again. I have tried numerous times, after flushing cache and using different browsers, and the checkbox remains checked.

It seems like this should work based on this: https://toolset.com/forums/topic/hide-redirect-archive-of-a-post-type/#post-625190 but I also saw this ticket: https://toolset.com/forums/topic/archive-is-disabled-for-post-type-cant-enable/#post-906802 which makes it sound like once the has_archive option has been selected during post type creation, it cannot be changed.

Is there a step I'm missing in order to turn off archives?

Or perhaps a workaround in code that I can add in the custom code snippets area?

If has_archive cannot be changed after a cpt has been created, I assume I could delete the custom post type and create it from scratch with the same slug, this time making sure has_archive is unchecked before saving the cpt. Would there be any fallout from this method?

I'm also considering a redirect to handle this if that is the path of least resistance.

Thanks in advance for your help!

#2036427

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

We already releases a hotfix for this issue and the fix is shipped with Toolset Types version 3.4.9.

*** Please make a FULL BACKUP of your database and website.***
We always recommend running your site with the latest stable release plugin version. Could you please update ALL Toolset plugins to it's latest officially released version. You can download the latest plugin release from your accounts page:
=> https://toolset.com/account/downloads/

#2037213

My issue is resolved now. Thank you!