Forums › Forums › Search & Filter Pro › Multiple results shortcode's on 1 page
- This topic has 5 replies, 3 voices, and was last updated 7 years, 10 months ago by Anonymous.
-
Anonymous(Private) August 1, 2016 at 2:43 pm #52966
Hi guys,
First of all, great plugin :). Really looking forward to explore all the features!
However, i have a question about the shortcode-implementation. I currently have multiple CPT’s and I’m using the shortcode functionality because the standard archive gives back the same title for every page, and the CPT archive option aint working out for me…
I currently set up a whole bunch of archive pages, but on one page i have two search fields. Both the fields should update the same list of results. Is there any option how i can achieve this?
<div id="employees-overview"> <?php if ( function_exists('yoast_breadcrumb') ) {yoast_breadcrumb('<div id="breadcrumbs"><div class="container">','</div></div>');} ?> <div class="container"> <div class="intro"> <h2><?php echo $title; ?><?php //echo get_the_title( $id+1 ); ?></h2> <?php //echo get_the_content( $id ); ?> <?php echo $text; ?> </div> </div> <div class="container"> <div id="list-overview"> <?php if ( wp_is_mobile() ) { ?> <div class="showFilter">Toon filter</div> <?php }?> <div class="filter <?php if ( wp_is_mobile() ) { ?>mobile<?php }?>"> <div class="content"> <h3>Filter op functie</h3> <?php echo do_shortcode('[searchandfilter id="1188"]'); ?> </div> </div> <svg width='188px' style="display:none;" class="loader" height='188px' xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid" class="uil-ripple"><rect x="0" y="0" width="100" height="100" fill="none" class="bk"></rect><g> <animate attributeName="opacity" dur="2s" repeatCount="indefinite" begin="0s" keyTimes="0;0.33;1" values="1;1;0"></animate><circle cx="50" cy="50" r="40" stroke="#066cb5" fill="none" stroke-width="2" stroke-linecap="round"><animate attributeName="r" dur="2s" repeatCount="indefinite" begin="0s" keyTimes="0;0.33;1" values="0;22;44"></animate></circle></g><g><animate attributeName="opacity" dur="2s" repeatCount="indefinite" begin="1s" keyTimes="0;0.33;1" values="1;1;0"></animate><circle cx="50" cy="50" r="40" stroke="#066cb5" fill="none" stroke-width="4" stroke-linecap="round"><animate attributeName="r" dur="2s" repeatCount="indefinite" begin="1s" keyTimes="0;0.33;1" values="0;22;44"></animate></circle></g></svg> <div class="search-module"> <?php echo do_shortcode('[searchandfilter id="1190"]'); ?> </div> <?php echo do_shortcode('[searchandfilter id="1188" show="results"]'); ?> <?php echo do_shortcode('[searchandfilter id="1190" show="results"]'); ?> </div> </div> </div>
Would love te get some feedback. Thanks!
Anonymous(Private) August 1, 2016 at 2:51 pm #52974// Looks like i cant edit my post
Just found this topic: https://support.searchandfilter.com/forums/topic/multiple-search-forms-same-result-shortcode/. Guess the option is not available yet?
-
AuthorPosts