Skip Navigation

[Resolved] wpv-control-post-relationship : filter the list or … ?

This support ticket is created 2 years, 11 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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Hong_Kong (GMT+08:00)

This topic contains 1 reply, has 2 voices.

Last updated by Luo Yang 2 years, 11 months ago.

Assisted by: Luo Yang.

Author
Posts
#2283773

Hi.
I have a custom search (here in a building phase : hidden link

And I'm stucked with this select filter "Type de capteur". As you can see on the page, it is a very long list, whereas actually, I just want 5 of them, I just want those relationship that have a specific taxonomy. Let's say the "family" (name of the taxo) == "capteur"

For the moment my short codes are like this :
[wpv-control-post-relationship ancestors="generique@generique_product.parent" url_param="wpv-relationship-filter"]
<div class="filtre-dream">
[wpv-control-post-ancestor type="select" ancestor_type="generique@generique_product.parent" default_label="Type de capteur"]
</div>
[/wpv-control-post-relationship]

Thanks!!

#2285373
css-hide.jpg

Hello,

There isn't such kind of built-in feature, you can consider custom CSS codes to hide those options, for example:

select[name="wpv-relationship-filter"] option:not([value="13382"], [value="27070"]){
display:none;
} 

See my screenshot css-hide