[Resolved] I would like to use the themdefault archive . php for a Custom Post Type Archive
This support ticket is created 4 years, 3 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.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
Tell us what you are trying to do?
I would like to use the default archive.php for a Custom Post Type Archive
How can I assign the default archive.php to my custom post type archive? Currently there is a button to "Create Archive" and the following text above the button with a burgundy caution triangle: "There is no WordPress Archive for News."
I would like it to display my theme's default archive.php in this area so I do not need to make a content template for my archive.
1. That is exactly right - we would like to take the existing archive.php and apply it to my CPT Archive. My question is in order for toolset to access this newly renamed CPT (archive-[post_type}.php, where would I locate the newly renamed file? What directory would I put it in?
2. The other issue I am having is by default before you create an archive in the toolset dashboard, it should be default display archive.php - in my installation with the Kadence theme it does not display this and nor does the default archive display in the same way as the theme's actual default archive.php. That is why I was asking how to point the theme to the default archive.php.
1. That is exactly right - we would like to take the existing archive.php and apply it to my CPT Archive. My question is in order for toolset to access this newly renamed CPT (archive-[post_type}.php, where would I locate the newly renamed file? What directory would I put it in?
This file will be placed in the same directory as the original archive.php file.
2. The other issue I am having is by default before you create an archive in the toolset dashboard, it should be default display archive.php - in my installation with the Kadence theme it does not display this and nor does the default archive display in the same way as the theme's actual default archive.php. That is why I was asking how to point the theme to the default archive.php.
Unless Kadence made a special archive.php template then that is different from the default then you will get defaulted to the archive.php
What I suspect is that in this case Kadence may have created a special archive template for their posts and this what you are seeing now is the actual default template.
1. Can you please check the ability to create a content template that displays with correct formatting with the Kadence theme?
2. Can you please check how one reassigns the layout to the default archive (archive.php) with Kadence theme?