Skip Navigation

[Resolved] Split: Predefined search and/or taxonomy archives – filter view with taxonomy term

This support ticket is created 3 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
- 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 4 replies, has 2 voices.

Last updated by fabriceS 3 years, 11 months ago.

Assisted by: Minesh.

Author
Posts
#1880251

Ooops, another "related" question...

I created a search form with multiple selectors. One of them is a checkboxes list with these "area" criterias.

I'm happy you help me to deactivate the wordpress archives. Actually I'dlike to create a link in my menu going to my search page.

For the menu item "mountain" I'd like to preselect the attribute in order to display my general search view with "mountain" checkbox already checked so the user see only the items with the taxonomy "mountain" and have the other checkboxes unchecked. (so the user still have the possibility to make a different choice.

#1880257

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

Can I see how you configure your menu and how you confiture your search page? using view/block?

#1880259

Yes, my searching page is displaying a view:

[wpv-filter-start hide="false"]
[wpv-filter-controls]
<div class="search-items">
<div class="search-item"> [wpv-control-post-relationship ancestors="city@city-property.parent" url_param="wpv-relationship-filter"]
<div class="search-item-label search-itm-label_1">
<label class="prop-search-label">[wpml-string context="wpv-views" class="prop-search-label"]Ville ou Station[/wpml-string]</label>
</div>
<div class="search-item-box">[wpv-control-post-ancestor type="select" default_label="---" class="prop-search-city" ancestor_type="city@city-property.parent"]</div>
[/wpv-control-post-relationship] </div>
<div class="search-item">
<div class="search-item-label search-itm-label_2">
<label class="prop-search-label">[wpml-string context="wpv-views"]Prix maximum[/wpml-string]</label>
</div>
<div class="search-item-box">[wpv-control-postmeta field="wpcf-prix-min" output="legacy" class="prop-search-price" url_param="wpv-wpcf-prix-min"] €.</div>
</div>
<div class="search-item search-item-beds">
<div class="search-item-label search-itm-label_3">
<label for="wpv-wpcf-bedrooms-max" class="prop-search-label">[wpml-string context="wpv-views"]Nombre de chambres[/wpml-string]</label>
</div>
<div class="search-item-box">[wpv-control-postmeta field="wpcf-bedrooms-max" output="legacy" class="prop-search-beds" url_param="wpv-wpcf-bedrooms-max"]</div>
</div>
<div class="search-area">
<div class="search-item-label search-itm-label_4">
<label for="wpv-area" class="prop-search-label">Environnement</label>
</div>
<div class="search-item-box">[wpv-control-post-taxonomy taxonomy="area" type="checkboxes" output="legacy" class="search-area-list" url_param="wpv-area"]</div>
</div>
</div>
<div class="search-but"> [wpv-filter-reset reset_label="ré-initialiser" class="but-reset"]
[wpv-filter-spinner container="span" spinner="/wp-content/uploads/2020/11/Eclipse-1s-44px.svg"][/wpv-filter-spinner] </div>
[/wpv-filter-controls]
[wpv-filter-end]

This is the part on which I'dlike to preselect one of the checkbox.

<div class="search-item-box">[wpv-control-post-taxonomy taxonomy="area" type="checkboxes" output="legacy" class="search-area-list" url_param="wpv-area"]</div>

I'like to apply a


Minesh
Supporter

Languages: English (English )

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

Well - Toolset does not control the WordPress menu.

You should create a menu item and link the related term.

For example:
For the Mountain menu - it should have a link of your page with URL param that holds the term slug.
hidden link

This way you should configure your menu links.

#1880279

My issue is resolved now. Thank you!