-
Search Results
-
I have two versions working perfectly: 1. Shortcode version using default results.php and 2. Archive version using my theme’s search.php.
What I’d like is the theme’s search.php results on the shortcode page, but I’m not sure if 1. It is possible? 2. I have the technical ability to pull it off.
I’ve been searching through documentation and forums for hours and so far all I’ve received is a serious headache. Are you able to please assist me with this? If not, is there some documentation that you can please point me to or lead me in the right direction?
Thank you for your help.
Test page: http://hasfit.com/search-test/
My search.php code:<?php get_header(); ?> <div id="content"> <?php get_template_part('includes/breadcrumbs'); ?> <?php $count = 1; ?> <?php if (have_posts()) : while ( have_posts() ) : the_post() ?> <?php include('includes/loop.php'); ?> <?php if($count%3 == 0){ ?> <div class="clear"></div> <?php }; $count++; ?> <?php endwhile; ?> <div class="clear"></div> <div class="pagination"> <?php pagination( '« prev', 'next »') ?> </div><!-- .pagination --> <?php else : ?> <?php get_template_part('includes/not-found'); ?> <?php endif; ?> </div><!-- #content --> <?php get_sidebar(); ?> <?php get_footer(); ?>Topic: Customising the Results
Hello,
thank you for the plugin!
I have a problem customising the results.
I use the “Using a Shotcode” display results method.I did what you described in your documentation:
Customising the Results
If you wish to customise the display of your results, you must override the default template that is being used by Search & Filter:
Create a folder in your theme folder called search-filter.
Copy the file wp-content\plugins\search-filter\templates\results.php from the templates folder in to the newly created folder in your theme – wp-content\themes\your-theme-name\search-filter\results.phpFrom now on, Search & Filter will load this version of the template instead of its own – so you can make any customisations that are necessary.
Unfortunately this did not change anything. They look the same way as before.
They don´t look like the results I get when using the standard search on my template.
I would like the results to appear in the same way they appear in the standard search on my template.When I use the display results method “As an Archive” the results look great.
But the results are on a different page and you said the Ajax is slower.Best regards,
GeorgTopic: Pagination issue
Hi,
Great plugin by the way. So I have installed wp_paginate as I usually do, I made a few minor positioning changes to the results.php template, mainly just wrapping of divs and adding some custom field calls other than that nothing php wise.
When you use the pagination it show the Error404 page.
The URL for the next page shows as /?sf_page=2 if trying to get to page number 2 ect.
Any advice gratefully received.
geoffb
Topic: Group sets of fields
Is there a way of grouping sets of fields within a search form?
I have a form, included in my template via the shortcodes (for both form and results), which contains a search fields, and then a series of taxonomy fields.
I’d like to arrange it (in a simplified way) something like:
<div id="search"> <h2>Search:</h2> <ul> <li class="sf-field-search ~~ etc. </ul> </div> <div id="filter"> <h2>Filter by:</h2> <ul> <li class="sf-field-taxonomy-xx ~~ etc. <li class="sf-field-taxonomy-xx ~~ etc. <li class="sf-field-taxonomy-xx ~~ etc. <li class="sf-field-taxonomy-xx ~~ etc. </ul> </div>It’s easy to do if I create two seperate forms and include the shortcodes at the ul levels in my example, but then they don’t co-operate when it comes to results.
Is there a template (like there is for results.php) they we can modify?