Skip Navigation

[Resolved] Archive template is not showing

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.

Our next available supporter will start replying to tickets in about 8.60 hours from now. Thank you for your understanding.

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 11 replies, has 2 voices.

Last updated by neliS 1 year, 5 months ago.

Assisted by: Minesh.

Author
Posts
#2617889
toolset.png

I am trying to: To edit archive template for custom post type. Theme is Twenty Twenty-Three. Creation is not a problem, but the front end archive is not visible (I can see default archive). If I try to use the 'View' block in the archive editing part of the theme itself, the Toolset image block gives me no options to choose elements. (added image)

Link to a page where the issue can be seen: This is default template hidden link

I expected to see: Additional data to the archive loop

I lost whole day with this and nothing is helping. I create a template for the archive in the toolset, but it is not displayed on the front end. Plz can someone check this?

Credentials for login:
access-details removed

#2617919

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

I'm not sure if you have made any changes to archive settings or but I can see the following archive is loaded using blocks:
=> hidden link

Am I missing anything here?

#2618041
toolset-2.png

yep, you are.
1. This is a default archive template that you can see now that show excerpt.
2. I made template for that custom post type in toolset and instead of excerpts show some taxonomies from that custom post type.
3. Template from toolset is not visible as you can see. (Attached screenshot).
4. Fill free to log in and check on your on.
5. Name for toolset template is Strains with ID 414.

#2618371

Minesh
Supporter

Languages: English (English )

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

I checked with your theme and I can see its not working with your current theme twentytwentythree.

Toolset modify the content (post body / the_content) area and your theme does not look to use the the_content function.

Content Templates modify the content when called from the_content function. Some themes don't use this function, but define their own that is why the archive is not working.

If you switch to the twentytwentyone (2021) theme you will see it working. If you want to make it work with your current theme then you will have to create a child theme and in the child theme you should add the PHP template for your archive and make sure you will be using the_content() function inside it to display the archive.

#2618375

Can you point me to some tutorial how to do that, now this sound a little bit to much for me 🙂

#2618857

Minesh
Supporter

Languages: English (English )

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

Here is the doc that shows information about how you can create custom archive using theme PHP template file:
=> https://toolset.com/documentation/customizing-sites-using-php/creating-templates-custom-post-type-archives/

You should read about that and check if that helps, if that does not help, I will require FTP access details.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#2619473

I'm not sure where the last message went. Have you received login information?

#2619675

Minesh
Supporter

Languages: English (English )

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

Thank you for sharing FTP access details but unfortunately the FTP access details is not working at this end.

Can you please tell me if I've to use any specific port to connect?

I have set the next reply to private which means only you and I have access to it.

#2619955

Minesh
Supporter

Languages: English (English )

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

I'm not sure how this theme works as its not using the default .php file for archive but .html file inside the templates folder inside your theme.

I've created the "templates" folder inside your child theme and copy the default archive.html available with your parent theme to your child theme's "templates" folder I just created. Then I've rename the archive.html to archive-strains.html

The content of this file is kind different and not using normal PHP. However, I deleted the excerpt part which you do not want.

I'm not quite sure about how to edit that so I suggest the easy way would be you should create a page that should work as archive and to that page you should add a view that should display your desired content. Does that makes sense?

If you do not know how to edit that theme - you can also contact any of our certified partners for further help:
=> https://toolset.com/contractors/

#2619983

Minesh
Supporter

Languages: English (English )

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

#2620831

Twenty twenty-three is not mine, it is the latest theme coming from wordpress developers. If the toolset focused on block themes, I think you should support the latest and greatest theme right now.

The last theme you are currently support is a 2 year old.

I will close this thread, but no solution was found. Using pages instead of categories is not the same. Maybe from developer perspective, from SEO perspective its not OK,

#2620835

My issue is resolved now. Thank you!