This support ticket is created 7 years, 10 months 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.
in my tree categories are checked/marked like this … (o=unchecked, x=checked)
parent > x
- child level 1 > o
-- child level 2 > x
the output should be something like …
Category Name of my parent category
listing of results parent
-
NO Category Name because has no marked data
listing of results child level 1 is empty (child level 2 are NOT included)
-
Category Name of my child level 2 category
listing of results child level 2
let me start from the end of your post: we are talking about regular hierarchal taxonomy (like category) and as far as i know those are store with ids in tables wp_term and wp_term_relationships.
talking about regular categories i can set parent on any level. editing my posts i can now select individually each level from parent, child to 'sub-child' (and so on).
the special on my request is, that i'd like to output with parent those which are MARKED with parent, not those which are 'only' marked with (of course belonging but) whatever subcategory.
only the loop processes the e.g. sub-level-2 i'd like to output exactly those values. (which is default)
not default is again that those sub-level-2 shall not be displayed in sub-level-1. (in general this is the same idea as in parent-top-category, but not 'checked in category tree' and therefore no output for that level.
please let me know if that needs a more detailed example.
Yes - I understand what you are saying. Basically - you need to start from top parent category and display parent category and further display its child category and posts belongs to that child category. if child category has no post, do not display child category. I hope I understood well.
Could you please share problem URL and exactly what output you want with test example.
1)
you should create a View which list all master category and one chose by you,
=> Add Filter: Taxonomy filter where taxonomy with parent = none
2)
=> Create a another view that will list all "child categories" Filters by taxonomy and add the taxonomy filter "Parent is the taxonomy selected by the parent Taxonomy View" and save
3)
=> Create another view that will list "all posts" related to your "child category" and add the taxonomy filter and select "Set by parent taxonomy view" and dispaly your post contents.
If you still need further assistance, just create your taxonomies and structure and if you stuck, please do not hesitate to get in touch with me with problem URLs.
This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.