Skip Navigation

[Resolved] Show content in template of the view if taxonomy has categories

This support ticket is created 6 years 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.

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: Asia/Karachi (GMT+05:00)

This topic contains 3 replies, has 2 voices.

Last updated by David Gimenez 6 years ago.

Assisted by: Waqar.

Author
Posts
#1139841

Hi there.

I have some taxonomy views that list

a. Categories
b. subcategories
c. subsubcategories
d. subsubsubcategories
e. Custom post archives of selected subsubsubcategories

I can click in every level to go to children level

Now I'd like to do the following

If Categories have subcategories.... go to the page that shows subsubcategories
If Categories haven't got subcategories.... go to the archive of custom posts.

Example of template of the view with invented code about taxonomy has subcats


[wpv-conditional if="( this_taxonomy_have_not_subcats)"]
[wpv-taxonomy-link]
[/wpv-conditional]

[wpv-conditional if="( this_taxonomy_has_subcats)"]
<a href=" [url]/show-subcategories/?tipo=[wpv-taxonomy-id]">[wpv-taxonomy-title]</a> 
[/wpv-conditional]

 

Any help?

Thank U in advanced

#1140418

Hi David,

Thank you for contacting us and I'll be happy to assist.

To suggest the best way forward, I'll need to see how that taxonomy views and category hierarchy is set.

Can you please share temporary access (WP-Admin and FTP) to your site, so that I can log in to the admin area?
( preferably to a test/development site, if possible )

Your next answer will be private which means only you and our support team will have access to it.

*** Important Notes ***

- Please backup your database and website before sharing the access information.

- Also, share the exact link to the page where the taxonomy views can be seen.

regards,
Waqar

#1140430

Hi waqar

user: toolset
pass: toolset2020
url access: hidden link

U can see the first level of categories here: hidden link
Clicking in every level of categories u go to the next category level.
Thanks in advanced

#1140715

My issue is resolved now. Thank you!