Skip Navigation

[Resolved] Looking to only show 2 collections in dropdown form, not all like currently show

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

Last updated by matthewS-8 2 years, 2 months ago.

Assisted by: Luo Yang.

Author
Posts
#2457325

Tell us what you are trying to do?
Trying to only show 2 of the 3 taxonomies in the dropdown search box.

Is there any documentation that you are following?
No, I couldn't find anything that was specific to my question on your website or question.

Current Code in conditional search filter.... displays all terms.

<div class="span_3_of_6 col clr">
<div class="form-group"><label>[wpml-string context="wpv-views"]Collection[/wpml-string]</label>
<p>[wpv-control-post-taxonomy taxonomy="collection" type="select" default_label="All" url_param="wpv-collection"]</p>
</div>
</div><!-- .span_3_of_6 -->

Collection items are as follows - "All", "Revelation", "Revere", and "Revival". I would like to HIDE "Revival" in the dropdown list. - But I don't want to delete the term as it may need to be activated again at a later date.

Is there a similar example that we can see?

What is the link to your site?
hidden link

#2457799

Hello,

There isn't such kind of built-in feature within Toolset plugins, but you can use custom CSS codes to hide those specific options, for example:

select[name='wpv-collection'] option[value='revival-collection']{
	display:none;
}
#2458563

Thanks so much - this was exactly what I was looking for.
My issue is resolved now. Thank you!