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.
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?
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.
My issue is resolved now. Thank you!