[Resolved] Taxonomy parent/child views

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 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.

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.

This topic contains 4 replies, has 2 voices, and was last updated by  Annie 9 months, 1 week ago. The support staff assigned to this topic is Luo Yang.

Viewing 5 posts - 1 through 5 (of 5 total)
Author
Posts
#549645

I'm trying to set up a page where people can sort through a custom taxonomy with alphabetical grouping, where they can click an alphabet letter at the top that links them to a page with just the taxonomy entries starting with that letter. And then clicking on one of the normal entries would go to the archive listing the posts within that taxonomy.

I figured the easiest way to do this would be to have parent taxonomy entries for the letters, i.e. there would be an "A" taxonomy entry, and that would be set as the parent for any taxonomy entry starting with A. But I'm having trouble getting things set up with a View that would just display the child entries from a single parent. How would I set up a View where I can have it output just the child taxonomy entries from a single parent at a time, where the parent is specified by a URL variable? Or is there some better way to do this?

#549698

Luo Yang
Forum moderator

Supporter languages: English (English ) Chinese (Simplified) (简体中文 )

Supporter Timezone: Asia/Hong_Kong (GMT+08:00)

Dear Annie,

It is depends on your self.
If you need to manually specific the term's value, I suggest you try with passing the parameter with Views shortcode attribute, see our document:
https://toolset.com/documentation/user-guides/passing-arguments-to-views/#controlling-the-filter-with-shortcode-attributes

If you need to specific the term's value by your users in wordpress front-end, then I suggest you try with URL parameters.

#550083

The issue I'm having is that the taxonomy view doesn't seem to have any options I can find to filter by a variable I pass. I know how to pass the variables too the view, but the filter options on a taxonomy view aren't the same as for posts and I don't see any filter option that would allow me to filter it by the variable I pass. How would I get the taxonomy view to filter by a variable I pass via the URL?

#550207

Luo Yang
Forum moderator

Supporter languages: English (English ) Chinese (Simplified) (简体中文 )

Supporter Timezone: Asia/Hong_Kong (GMT+08:00)

The taxonomy view does support both URL parameter filter and shortcode attribute filter, see the screenshot:
taxonomy-view.JPG

If you need to pass the parameter with URL, you can add a filter into your taxonomy view:
Taxonomy term ID is set by the URL parameter "terms-filter"

#550503

Ah, ok, I just realized I was looking under the wrong filter type, I see the options now that I'm on the correct one. Thanks.

Viewing 5 posts - 1 through 5 (of 5 total)

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