Unable to create archive template for custom taxonomy. Template disappears.

Posted in: Newspaper
Post count: 221

Hi,

I am unable to add archive templates for custom taxonomies. I am using ACF plugin. When I import a blank template it’s added in the list of templates in Cloud templates->CPT/Taxonomies->Custom Taxonomies – Templates, but when I make any change to the template from the edit option that we get when we hover on three dots (not edit with TD composer), it disappears from the list.

For example, I imported a template from cloud library for a custom taxonomy that I created called “section,” When I clicked on edit, it took me to new tab. There I changed its name from Blank taxonomy to Section taxonomy template and updated it.

When I retured back to the CPT/Taxonomies section of the cloud library and scrolled down, I found that my template was no longer there. This message was written there: “No cloud templates. Please import one or more templates from Cloud Library.

I tried this 5 times — same results. I once even tried not making any changes, just clicked the update button. It still disappeared. But surprizingly, I found all the invisible templates at this url: “mydomain[dot]com/wp-admin/edit.php?post_type=tdb_templates

My website even sent me an email regarding the fatal error caused by tagDiv Cloud Library. You can see the snipped it sent me below:

Howdy!

WordPress has a built-in feature that detects when a plugin or theme causes a fatal error on your site, and notifies you with this automated email.

In this case, WordPress caught an error with one of your plugins, tagDiv Cloud Library.

It sent the error details as well. Please have a look:

When seeking help with this issue, you may be asked for some of the following information:
WordPress version 6.2
Active theme: Newspaper (version 12.3.1)
Current plugin: tagDiv Cloud Library (version 2.6 | built on 06.04.2023 10:28)
PHP version 8.1.2-1ubuntu2.11

Error Details
=============
An error of type E_ERROR was caused in line 77 of the file /mydomain.com/wp-content/plugins/td-cloud-library/state/tdb_state_loader.php. Error message: Uncaught TypeError: Cannot access offset of type string on string in /mydomain.com/wp-content/plugins/td-cloud-library/state/tdb_state_loader.php:77
Stack trace:
#0 /mydomain.com/wp-includes/class-wp-hook.php(308): tdb_state_loader::{closure}()
#1 /mydomain.com/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
#2 /mydomain.com/wp-includes/plugin.php(517): WP_Hook->do_action()
#3 /mydomain.com/wp-settings.php(623): do_action()
#4 /mydomain.com/wp-config.php(88): require_once(‘…’)
#5 /mydomain.com/wp-load.php(50): require_once(‘…’)
#6 /mydomain.com/wp-admin/admin.php(34): require_once(‘…’)
#7 /mydomain.com/wp-admin/post.php(12): require_once(‘…’)
#8 {main}
thrown

Please also note that there are options in the edit window to select the template type from the dropdown like “header, search, tag, etc.” I tried to experiment with that as well. I once kept it at default “No template type” and after encountering the issue changed it to tag, but it didn’t help. I couldn’t find an option for custom taxonomy in the dropdown.

Custom post types and taxonomies are the foundation of my website from structural perspective. This issues has caused me great inconvenience and more than that, frustration. Please help.

I shall be extremely thankful.

Regards.

Post count: 21065

Hello @prateek!

Unfortunately, we do not have this type of template: archive templates for custom taxonomies at the moment.
We know this issue and the fix will be added in the next update.

Thank you!

Post count: 221

I think you are mistaken. This seems to be not true. You CAN, indeed, add archive template for custom taxonomy. What you’re talking about is custom post type archive template.

So if I made a custom post type called movie, I can decide how my single movie post looks like with the help of template but I cannot use the template to display all posts inside movie post type archive because archive template is not available for CPT.

On the other hand, if I add custom taxonomy called actors for my CPT movie, I have the option to decide how all the articles or posts look like inside a single actor taxonomy, say, Leonardo Dicaprio, by using an archive template from cloud library. It’s available in the theme.

So, to summarize, you can only add single post template for CPT and not archive template. For custom taxonomy, you can only add archive template not single post template.

See the image below: (Grabbed from tagDiv documentation)
It clearly says the custom taxonomy template is working similar to a category cloud template

It clearly says “the custom taxonomy template is working similar to a category cloud template” in the notice

You should read this page thorough:(Only takes 2-5 minutes)
read

It’s concerning to me if the developers at tagDiv are not even aware of this issue. I mean this is the most basic thing someone would want to do to their templates, like changing the template permalink, etc.

Please help.

Post count: 21065

Hello @prateek!

They are similar, not identical. We are at the beginning with CPTs. I hope we will add more features and templates regarding them.

Thank you!

Post count: 221

I know they are not identical. So you tell me, what’s the point to mention the similarity in a special notice? To tell users that you can create a template of similar nature. Right?

You’re telling me that it’s currently not possible to create an archive template for custom taxonomy with the help of tagDiv composer and cloud library?

So what is the purpose of giving users the option to create a template for custom taxonomy?

I am afraid that you don’t know what you’re talking about. Can I get Calin?

Post count: 21065

Hello @prateek!

What I’m telling you is that the issue you are encountering with the templates disappearing after editing them will be fixed in the next update.
Regarding the CPT archive template, this type of template is not available at the moment. 

Thank you!

Post count: 221

Can you highlight one instance from my entire conversation with you where I told you that I need an archive template for CPT. I never told you that. I need an archive for CT. CT is custom taxonomy, CPT is custom post type for God’s sake.

This was part of your response word to word:

“Unfortunately, we do not have this type of template: archive templates for custom taxonomies at the moment.”

Bettina, we do have this type of template. we do have archive template for custom taxonomies at this very divine moment. we just can’t edit them. Bettina.

Post count: 21065

Hello @prateek!

Ok. I understand and I repeat again that this issue will be fixed.

Thank you!

Post count: 221

Thanks for this grand favour.

?

Viewing 9 posts - 1 through 9 (of 9 total)
You must be logged in to reply to this topic.