Forums › Forums › Search & Filter Pro › Need help ….
- This topic has 18 replies, 2 voices, and was last updated 7 years, 5 months ago by
Anonymous.
-
Anonymous(Private) October 9, 2018 at 11:04 am #190503
I did this once before but unsure how – when i have ajax turned on the form won’t allow me to select multiple filters and submit – it sort of auto submits and then loads results… But with ajax it seems to load the taxonomy specific page which is good… However, when i turn ajax off i get the functionality i want with ability to select taxonomy and enter a few filter options but the results load on a generic all post page instead of the taxonomy archive selected in form…
<div class=”fl-widget”>
<div class=”widget widget_search_filter_register_widget”>
<form data-sf-form-id=”331″ data-is-rtl=”0″ data-maintain-state=”” data-results-url=”http://worldinv.staging.wpengine.com/?post_type=talk” data-ajax-url=”http://worldinv.staging.wpengine.com/?post_type=talk&sf_data=all” data-ajax-form-url=”http://worldinv.staging.wpengine.com/?sfid=331&sf_action=get_data&sf_data=form” data-display-result-method=”post_type_archive” data-use-history-api=”1″ data-template-loaded=”0″ data-taxonomy-archives=”1″ data-current-taxonomy-archive=”series” data-lang-code=”” data-ajax=”0″ data-ajax-data-type=”html” data-ajax-target=”#main” data-ajax-pagination-type=”infinite_scroll” data-show-scroll-loader=”1″ data-infinite-scroll-container=”.fl-post-feed” data-infinite-scroll-trigger=”-100″ data-infinite-scroll-result-class=”.fl-post-feed-post” data-ajax-links-selector=”.pagination a” data-update-ajax-url=”0″ data-only-results-ajax=”0″ data-scroll-to-pos=”custom” data-custom-scroll-to=”#page” data-scroll-on-action=”all” data-init-paged=”1″ data-auto-update=”0″ data-auto-count=”1″ data-auto-count-refresh-mode=”1″ action=”http://worldinv.staging.wpengine.com/?post_type=talk” method=”post” class=”searchandfilter” id=”search-filter-form-331″ autocomplete=”off” data-instance-count=”1″>-
<li class=”sf-field-taxonomy-series” data-sf-field-name=”_sft_series” data-sf-field-type=”taxonomy” data-sf-field-input-type=”select” data-sf-term-rewrite=”["http:\/\/worldinv.staging.wpengine.com\/series\/[0]\/"]” data-sf-taxonomy-archive=”1″><h4>Select a Topic:</h4>
<label>
<select name=”_sft_series[]” class=”sf-input-select” title=””><option class=”sf-level-0 sf-item-0″ data-sf-count=”0″ data-sf-depth=”0″ value=””>All Series</option>
<option class=”sf-level-0 sf-item-900″ data-sf-count=”0″ data-sf-depth=”0″ value=”chats”>Chats (0)</option>
<option class=”sf-level-0 sf-item-393″ data-sf-count=”225″ data-sf-depth=”0″ value=”consecrated-living”>Consecration (225)</option>
<option class=”sf-level-0 sf-item-391″ data-sf-count=”191″ data-sf-depth=”0″ value=”ephesians”>Ephesians (191)</option>
<option class=”sf-level-0 sf-item-915″ data-sf-count=”29″ data-sf-depth=”0″ value=”learning-how-to-pray”>LEARNING HOW TO PRAY (29)</option>
<option class=”sf-level-0 sf-item-899″ data-sf-count=”75″ data-sf-depth=”0″ value=”living-daily-in-reality”>Living Daily in Reality (75)</option>
<option class=”sf-level-0 sf-item-395″ data-sf-count=”66″ data-sf-depth=”0″ value=”living-faith”>Living Faith (66)</option>
<option class=”sf-level-0 sf-item-394″ data-sf-count=”233″ data-sf-depth=”0″ value=”living-in-the-spirit”>Living in the Spirit (233)</option>
<option class=”sf-level-0 sf-item-397″ data-sf-count=”11″ data-sf-depth=”0″ value=”love-and-marriage”>Love and Marriage (11)</option>
<option class=”sf-level-0 sf-item-400 sf-option-active” selected=”selected” data-sf-count=”40″ data-sf-depth=”0″ value=”normal-christian-lives”>Normal Christian Lives (40)</option>
<option class=”sf-level-0 sf-item-396″ data-sf-count=”90″ data-sf-depth=”0″ value=”old-and-new-testament-studies”>Old And New Testament Studies (90)</option>
<option class=”sf-level-0 sf-item-399″ data-sf-count=”43″ data-sf-depth=”0″ value=”revival”>Revival (43)</option>
<option class=”sf-level-0 sf-item-398″ data-sf-count=”377″ data-sf-depth=”0″ value=”sermons-on-the-book-of-romans”>Romans (377)</option>
<option class=”sf-level-0 sf-item-922″ data-sf-count=”6″ data-sf-depth=”0″ value=”uncategorized”>uncategorized (6)</option>
<option class=”sf-level-0 sf-item-392″ data-sf-count=”1″ data-sf-depth=”0″ value=”what-is-the-meaning-of-life”>What is the Meaning of Life (1)</option>
<option class=”sf-level-0 sf-item-390″ data-sf-count=”36″ data-sf-depth=”0″ value=”why-are-we-alive”>Why Are We Alive? (36)</option>
</select>
</label><li class=”sf-field-search” data-sf-field-name=”search” data-sf-field-type=”search” data-sf-field-input-type=””>
<label><input placeholder=”Search …” name=”_sf_search[]” class=”sf-input-text” type=”text” value=”” title=””></label><li class=”sf-field-post-meta-category1″ data-sf-field-name=”_sfm_category1″ data-sf-field-type=”post_meta” data-sf-field-input-type=”select” data-sf-meta-type=”choice”><h4>Select A SubTopic</h4> <label>
<select name=”_sfm_category1[]” class=”sf-input-select” title=””><option class=”sf-level-0 sf-item-0 sf-option-active” selected=”selected” data-sf-depth=”0″ value=””>All Items</option>
<option class=”sf-level-0 ” data-sf-count=”21″ data-sf-depth=”0″ value=”cleanheart”>cleanheart (21)</option>
<option class=”sf-level-0 ” data-sf-count=”13″ data-sf-depth=”0″ value=”newbirth”>newbirth (13)</option>
<option class=”sf-level-0 ” data-sf-count=”6″ data-sf-depth=”0″ value=”sanctification”>sanctification (6)</option>
</select>
</label><li class=”sf-field-post-meta-duration1″ data-sf-field-name=”_sfm_duration1″ data-sf-field-type=”post_meta” data-sf-field-input-type=”range-slider” data-sf-meta-type=”number”><h4>Select a Video Length</h4> <div data-start-min=”0″ data-start-max=”70″ data-start-min-formatted=”0″ data-start-max-formatted=”70″ data-min=”0″ data-max=”70″ data-step=”10″ data-decimal-places=”0″ data-thousand-seperator=”” data-decimal-seperator=”.” data-display-values-as=”textinput” data-sf-field-name=”_sfm_duration1″ class=”sf-meta-range sf-meta-range-slider”>
<label><input class=”sf-input-range-number sf-range-min sf-input-number” min=”0″ max=”70″ step=”10″ name=”_sfm_duration1[]” type=”number” value=”0″ title=””></label><span class=”sf-range-postfix”>min</span> <span class=”sf-range-values-seperator”> – </span> <label><input class=”sf-input-range-number sf-range-max sf-input-number” min=”0″ max=”70″ step=”10″ name=”_sfm_duration1[]” type=”number” value=”70″ title=””></label><span class=”sf-range-postfix”>min</span>
<div class=”meta-slider noUi-target noUi-ltr noUi-horizontal”><div class=”noUi-base”><div class=”noUi-connects”><div class=”noUi-connect” style=”transform: translate(0%, 0px) scale(1, 1);”></div></div><div class=”noUi-origin” style=”transform: translate(-100%, 0px); z-index: 5;”><div class=”noUi-handle noUi-handle-lower” data-handle=”0″ tabindex=”0″ role=”slider” aria-orientation=”horizontal” aria-valuemin=”0.0″ aria-valuemax=”100.0″ aria-valuenow=”0.0″ aria-valuetext=”0″></div></div><div class=”noUi-origin” style=”transform: translate(0%, 0px); z-index: 4;”><div class=”noUi-handle noUi-handle-upper” data-handle=”1″ tabindex=”0″ role=”slider” aria-orientation=”horizontal” aria-valuemin=”0.0″ aria-valuemax=”100.0″ aria-valuenow=”100.0″ aria-valuetext=”70″></div></div></div></div>
</div>
<li class=”sf-field-submit” data-sf-field-name=”submit” data-sf-field-type=”submit” data-sf-field-input-type=””><input type=”submit” name=”_sf_submit” value=”Submit”></form></div>
</div>Anonymous(Private) October 9, 2018 at 11:48 am #190508basically i need
http://worldinv.staging.wpengine.com/series/taxoomy-name/and then filters like above…If i only select the taxonomy then it gives me
http://worldinv.staging.wpengine.com/series/taxonomy-name/
example:
http://worldinv.staging.wpengine.com/series/normal-christian-lives/But if I give it a search term or select a meta(filter )
then it goes straight to :
http://worldinv.staging.wpengine.com/?post_type=talk&_sft_series=normal-christian-lives&_sf_s=love&_sfm_duration1=0+70Anonymous(Private) October 9, 2018 at 10:45 pm #190569i have hardcoded the code for the form into html block inside home page and hoped to simply edit html to allow the taxonomy selected in form to populate webaddress instead of generic ?post-type&sft=…..
examples:
basically i need
http://worldinv.staging.wpengine.com/series/taxoomy-name/and then filters like above…If i only select the taxonomy then it gives me
http://worldinv.staging.wpengine.com/series/taxonomy-name/
example:
http://worldinv.staging.wpengine.com/series/normal-christian-lives/But if I give it a search term or select a meta(filter )
then it goes straight to :
http://worldinv.staging.wpengine.com/?post_type=talk&_sft_series=normal-christian-lives&_sf_s=love&_sfm_duration1=0+70Anonymous(Private) October 11, 2018 at 12:59 am #190720I can shoot another video but regardless of how it is inserted – are you saying it will work if I place widget in place of html?
It works but it doesn’t call the taxonomy page it calls a generic talks ( post page ) – are you saying that is because it copied html and it is missing java to achieve what im asking?
-
AuthorPosts