Hide vendor if checkbox attribute is checked

Hello, is it possible to hide vendors on “vendors page” and search results if they have checked an attribute (hp_hide_profile) ?
Thanks

Hi,

Unfortunately, there’s no such feature, it would require a custom implementation. If customizations are required for your site, please try customizing it using the collection of code snippets Search · user:hivepress · GitHub and other developer resources, or consider hiring someone for custom work Customize your website | HivePress

Thank you.
I can hide them from search results, it’s ok.
But, can I therorically use a “meta_query” to filter vendors with my attribute on vendors page ?

Hi,

In order to filter these vendors, you need to create a vendor attribute and mark it as filterable. And if you need to hide when a checkbox is checked, it will require a custom implementation, and you can use the pre_get_posts filter and change wp_query if you are familiar with coding.

​I hope this is helpful to you

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.