Skip Navigation

[Resolved] filter by categories id option

This support ticket is created 6 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.

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

Last updated by Minesh 6 years, 10 months ago.

Assisted by: Minesh.

Author
Posts
#617993

bsd
i would like exactly what i saw in ticket:
https://toolset.com/forums/topic/no-taxonomy-filtering-by-term-id/

the reason is that i would like to use toolset plugin to make parametric searchs that filter a page and acts also in tribe events calendar filter plugin.
Their filter works by ids and not by slugs.

thanks

#618120

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

Well - Just wanted to inform you that you can build the custom search for Views listing posts and post type archive. You can not build custom search for view's listing taxonomy OR users.

But - yes, you can filter the taxonomy view with taxonomy term ID by adding the query filter set by URL param.

 Taxonomy term filter
Taxonomy term ID is set by the URL parameter "terms-filter"
#618352
tribeid.png

bsd

i think i was clear enought:
please take a look at picture:

#618497

???

#618544

hello!!!!!!!!

#618845

bsd

please pass me to othe support - i see no answers here...

#618864

Minesh
Supporter

Languages: English (English )

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

I was on holiday for one day but unfortunately due to other priorities other supporters could not able to focus on my queue.

I'm here today and I'm happy to guide you in right direction. As you can see there is no option to filter by category ID using GUI but we have alternative way to do this using view's hook wpv_filter_query . Using this hook you can customize view's query on fly.

More info:
=> https://toolset.com/documentation/programmer-reference/views-filters/#wpv_filter_query

After reviewing above Doc - if you do not know how to use the hook, I'm happy to help you further but I need problem URL and access details.

*** 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 would additionally need your permission to de- and re-activate Plugins and the Theme, and to change configurations on the site. This is also a reason the backup is really important. If you agree to this, please use the form fields I have enabled below to provide temporary access details (wp-admin and FTP).

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

#618979

Minesh
Supporter

Languages: English (English )

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

Well - could you please share bit more details which view you are using and to which page you have added the view. Could you please share that problem URL?

Also, from where I can get the event category ids?