Forums › Forums › Search & Filter Pro › Search field and result on same page
- This topic has 5 replies, 2 voices, and was last updated 7 years, 1 month ago by Trevor.
-
Anonymous(Private) August 28, 2017 at 11:09 am #127913
Hi, thanks for your plugin we are about to use the useful function.
I set the search and filter form short code and result code on a same page, and when I access the page it shows the form and list of contained articles.
If I check the input in the form, list is re-loaded in ajax.
I’d wanna hide before submit it.
After checking and submit to click, the result should be displayed after the form.
How can I set in that way?Trevor(Private) August 29, 2017 at 8:04 am #128005So, you want no results on initial load?
I cannot see your page as you have an access security login, but maybe these posts will help:
https://support.searchandfilter.com/forums/topic/search-and-filter-issues/#post-97498
https://support.searchandfilter.com/forums/topic/force-selection/#post-87657
(I can find them easily because I put the phrase
Nothing Here Folks
in the code! If you want, you could search for more posts the same way)Anonymous(Private) September 3, 2017 at 1:54 am #128903Trevor,
thanks for your reply and sorry to get back late.
regarding your information, the code in the suggested page might be helpful though, I don’t know where to put and how I should handle setting of plugin.Currently settings:
page to be used: http://www.grphca.jp/visca_dev/shinsatsuken-index/
Display results method:using Shortcode
Template Options:http://www.grphca.jp/visca_dev/shinsatsuken-index/
other settings are normalAnd also I prepared page-shinsatuken-index.php, which is for custom page for that, and this file contains like below:
<?php echo do_shortcode( '[searchandfilter id="4873"]' ); ?> <?php echo do_shortcode( '[searchandfilter id="4873" show="results"]' ); ?>
And I want to put my form in this page(http://www.grphca.jp/visca_dev/shinsatsuken-index/), and displaying not list of articles before submitting the button.
If user click the submit button, the list should be shown up as checked.
The displaying is preferred to be like ajax move, not like changing page.And I remove basic auth so now you can see my page:
Anonymous(Private) October 17, 2017 at 4:10 am #136864Hi, finally we have done to install the function with your suggestion.
I have put the search-filter/result.php within my theme and list page is seemed to be fine though, the link displayed in the list are weird.After choosing some checkboxes and do search, result is showed up.
And the url comes with some parameter of the search.
and, the link within result index items have the parameters of the search after its own url.the result url is:
http://blog.grphca.jp/visca_dev2/shinsatsuken/?_sft_variety=photo,animaland the link within the result index is:
http://blog.grphca.jp/visca_dev2/idcard/pv08-28r/?_sft_variety=photo,animalresult.php uses this code below for that:
<a href="<?php the_permalink(); ?>" title="デザイン<?php the_title(); ?>"> <?php $image = wp_get_attachment_image_src(get_field('test'), 'full');?> <img src="<?php echo $image[0]; ?>" alt="<?php echo get_the_title(get_field('test')) ?>" /> </a>
How can I get the correct url of the result?
-
AuthorPosts