Skip Navigation

[Resolved] Don't display child post type when taxonomy is empty

The Toolset Community Forum is closed, for technical support questions, please head on to our Toolset Professional Support (for paid clients), with any pre-sale or admin question please contact us here.
This support ticket is created 9 years, 7 months ago. There's a good chance that you are reading advice that it now obsolete.
This is the community support forum for Types plugin, which is part of Toolset. Toolset is a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients and people who registered for Types community support can post in it.

Sun Mon Tue Wed Thu Fri Sat
- 8:00 – 17:00 8:00 – 17:00 8:00 – 17:00 8:00 – 17:00 8:00 – 17:00 -
- - - - - - -

Supporter timezone: America/Sao_Paulo (GMT-03:00)

This topic contains 9 replies, has 2 voices.

Last updated by Adriano 9 years, 6 months ago.

Assisted by: Adriano.

Author
Posts
#246887

I have a child Type that uses a Taxonomy to select from a large laundry list of items. Sometimes the taxonomy for a child Type will be empty. I'm trying to write a View that will show the child Type that has a Taxonomy entry, but not display the ones that are empty.

Here's the code I've written, based on searching through the help system and the documentation

     [types field="product-type" id=""] extras: [wpv-post-taxonomy type="film-extras" separator=", " format="link" show="name"]. 
     [wpv-if evaluate="'[wpv-post-taxonomy type="film-extras" separator=", " format="link"]' != ''"]
     [types field="product-type" id=""] extras: [wpv-post-taxonomy type="film-extras" separator=", " format="link" show="name"]. 
     [/wpv-if]

I assume I'm missing something that tells the View not to print the line on line 3, but I can't figure out what to put. Please advise.

#247024

Your code looks good. I need to request temporary access (wp-admin and FTP) to your site in order to be of better help. You will find the needed fields for this below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it.

#247656

Log-in information attached.

#247880

Please let me know which View / Content Template / Page should I check.

#247885

Views>Extras

#248569

I've fixed this. The code below seems worked fine:

[wpv-if evaluate="'[wpv-post-taxonomy type="film-extras" separator="" format="text"]' != ''"]
     [types field="product-type" id=""] extras: [wpv-post-taxonomy type="film-extras" separator=", " format="link" show="name"]. 
     [/wpv-if]

Please let me know if you are satisfied with my answer and if I can help you with any other related question.

#248608
WP-types-code.jpg

The issue is resolved, but your new template won't allow me (or anyone else) to see the code snippets.

#248938

Sorry for this incovenience. We are working to fix this issue.

Is there anything else I can help you with?

#248997

No, that's it. Thank you.

#249013

You are welcome.

The forum ‘Types Community Support’ is closed to new topics and replies.

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.