Skip Navigation

[Gelöst] Cannot Nest Taxonomy View Inside of Archive

This support ticket is created vor 3 Jahren. 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.

Heute stehen keine Supporter zur Arbeit im Werkzeugsatz-Forum zur Verfügung. Sie können gern Tickets erstellen, die wir bearbeiten werden, sobald wir online sind. Vielen Dank für Ihr Verständnis.

Sun Mon Tue Wed Thu Fri Sat
9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 - - 9: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: Africa/Casablanca (GMT+01:00)

Dieses Thema enthält 9 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von aaronM-9 vor 3 Jahren.

Assistiert von: Jamal.

Author
Artikel
#2210049

I have created a archive template for the WooCommerce "product categories" archive. I have also created a view that displays product categories that have a parent that is the current term being displayed inside an archive. The desired effect is to show sub-categories of that product category when user is on that page. For example, if they are viewing the "books" archive, then it would shows child terms to "books". However, I'm noticing the following issues:

- The view does not show up on the list of available views to embed in the template
- When manually embedding it in a Fields and Text block, the template takes FOREVER to update or load
- The view does not render on the front end

Clearly, I must not be going about this the correct way. Can you explain the proper way for me to achieve the desired result? Thanks.

- Aaron

#2210105

To update this, it appears whenever I put any wpv-taxonomy shortcode into the content of this archive it does some sort of damage. I tried inserting the wpv-taxonomy-title to the template and it takes FOREVER to update. When I delete the shortcode back out the problem doesn't go away. The only way to fix it is to delete the archive entirely and start back over.

- Aaron

#2210115

Hello Aaron and thank you for contacting Toolset support.

I assume that you are using the blocks editor to build the archive template, right?
Taxonomy views are not yet supported within the blocks editor, but they should work using a shortcode.

Can you move the view's shortcode from the "Fields&Text" block and try it inside a Shortcode block? How does it work?

Would you allow me temporary access to your website to check this further? Your next reply will be private to let you share credentials safely. ** Make a database backup before sharing credentials. **

Please share direct URLs to:
- The archive template you are working on.
- The view that you want to use inside the archive.

#2212677

I correctly setup the domain/IP correctly but the WordPress credentials did not work for me. I wanted to create an admin user programmatically, but the FTP access are not working for me either.

Please reset the password again, and share it on your next private reply.

#2212969

It seems that chrome automatically adds the www to the domain address and that takes to a different server. I come up to login using FireFox, but the server is very slow, I was able to open the archive template only once, and it took more than 5m. I could not open the archive template anymore.

Please prepare a copy of the website, using the Duplicator plugin, or the All In One Migration plugin and share a download URL. Your next reply will be private.
While preparing the copy, please exclude the uploads folder and the media files to reduce the size of the copy.

#2220615

It took some hours before I could build this copy on my local setup. Unfortunately, the product categories archive did not open on my setup too. Debug logs reveal a memory issue, which I could not overcome even if I increased my local memory to 2Gb.

This sounds a bell of a corrupt archive template. Can you try on your server to create a new archive template with minimal possible options, just the categories views to showcase this issue and I'll check it further.

#2224195

I have played around with this quite a bit. Once the issue happens, the ONLY way I've been able to figure out to get rid of the issue is to delete the archive entirely and create a new one from scratch that does not have the view embedded. The moment I try to embed the view, it develops the problem again.

- Aaron

#2225141

Please be advised I have migrated my website to a new hosting company. The URL is versteckter Link and environment credentials are dev/dev.

- Aaron

#2226023

Hello Aaron, I was not able to open and edit the archive template. So, I deleted it and created a new one for Products categories. I then included the taxonomy view using a shortcode block instead of a view block:

[wpv-view name="view-product-subcategories"]

You can check this new archive here versteckter Link
I hope it is a viable solution for you. Let me know if you have any further questions.

#2227097

Excellent! This seems to have fixed the issue, and I'm surprised I didn't think of it myself. Not sure why it doesn't work when added as a block but as long as it works one way or another I'm happy. Thanks.

- Aaron