Skip Navigation

[Resolved] How to filter a block view by post type

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

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 2 replies, has 2 voices.

Last updated by karlE 2 years, 1 month ago.

Assisted by: Minesh.

Author
Posts
#2597683

Tell us what you are trying to do?
How to filter a block view by post type

Is there any documentation that you are following?
Followed as many questions on this as I can - tried the sutom codes suggested by am unable to get it to work.

Is there a similar example that we can see?

What is the link to your site?
staging.pharmafile.com
EG: hidden link

I'm really surprised this is not pre-built into the views search/filtering functionality - it's there in sorting but sorting is not the same as filtering / searching.

Maybe I'm missing something and there is an easy way to do this?

#2597769

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

As you say you wont able to find any native feature to filter the view by post type because there is no such feature exists.

To filter the view by post type you will have to add the custom filter and then add the "wpv_filter_query" hook and you can not use the ajax filter.

If thats ok for you, you can share the problem URL where you want to add post type filter dropdown as well as admin access details and also share the information with what post types you want to filter your view.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) 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.

#2602211

My issue is resolved now. Thank you!