Skip Navigation

[Resolved] How can I create a view that will display content by a specific taxonomy

This support ticket is created 2 years, 1 month 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.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

This topic contains 8 replies, has 2 voices.

Last updated by richardB-17 2 years, 1 month ago.

Assisted by: Minesh.

Author
Posts
#2474061

I have three types of membership taxonomies on my website full membership, qualified members and student members. How can I create a view that will display members based on the taxonomy membership type? So I want to create three pages each with a view listing the membership types separately.

What is the link to your site?
hidden link

#2474099

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Here is the Doc that should help you to understand how you can build search or view:
- https://toolset.com/related-lesson/custom-search/

if you just want to pre-filter the result using the specific taxonomy term then you should navigate to "Content Selection" tab of your block view on right sidebar and then add a "Query Filter" for your taxonomy and select your desired taxonomy for which you want to filter your view.

If you want to reuse the view for multiple terms like for example:

//display posts belongs to student term
[wpv-view name="my-view-slug" term="student"]

//display posts belongs to member term
[wpv-view name="my-view-slug" term="member"]

Then, you will have to create your view in legacy mode:
- https://toolset.com/course-lesson/enabling-legacy-version-of-toolset-views/

And then you should create your view and add taxonomy query filter to it:
- https://toolset.com/documentation/legacy-features/views-plugin/front-page-filters/
- https://toolset.com/documentation/legacy-features/views-plugin/filtering-views-by-taxonomy/

#2474109

Thank you for your quick reply. I only need to filter by one term per view. I understand what you are saying, but my view was created in blocks so I can not edit it in legacy. I don't see a content selection tab in my block view or a query filter option.

#2474111

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

That is strange.

Can you please share problem URL where you added your view and share information about with what term you want to filter the view.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#2474165

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

So I've edit your page and from the block navigation button I've selected your view and then on right sidebar under the "Content Selection" tab I've added the taxonomy "Query Filter" as you can see with the following screenshot:
- hidden link

Can you please confirm it works as expected:
- hidden link

#2474189

Hi Minesh,

I am sorry for being such a noob :).

Wow, I did not even know about the list view option. You just taught me something very cool. I just tested the view now. The test member Dones is using the term Student Member but is still visible. The test member Anél’s Beauty Skincare is a CPCP qualified member and should be the only member visible. I also tried flushing the views cache but that also did not work.

#2474193

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

It seems I forget to update /save the page. Can you Please check now.

#2474197

Minesh, you are incredible. Thank you for your time and effort. 🙂

#2474199

My issue is resolved now. Thank you!