[Resolved] Taxonomy parent/child views

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.

You are not logged in. You can view support threads, but not post.
If you are already logged in, please refresh your browser.

This topic contains 4 replies, has 2 voices, and was last updated by  Annie 2 months 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://wp-types.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)

You are not logged in. You can view support threads, but not post.
If you are already logged in, please refresh your browser.

Known issues and their solutions

We document known issues and their solutions in Toolset erratas. Save time by checking there first and seeing if what you are facing is a known issue. This list is kept short. We do our best to resolve all known issues with every release of Toolset plugins.

Support Policy

Toolset staff will help you use the Toolset plugins correctly, provide any information you need, help troubleshoot problems and advice on best-practices.

Please make sure to issue only one topic per each support ticket.

For more information, read our full Customer Support Policy.

Need custom programming work for your site? Check out our certified partners.