Forums › Forums › Search & Filter Pro › Search Results incorrect
- This topic has 6 replies, 2 voices, and was last updated 9 years, 4 months ago by Ross.
-
Anonymous(Private) July 22, 2015 at 10:42 am #21870
Hi guys,
I bought the plugin yesterday and am just setting it up, but as yet I can’t get the correct search results to show.
My settings are as follows:
General – search ‘Posts’ only
Display Results – I tried shortcode but was getting a 404 error so am using archive at the moment
Posts – ‘Published’ only
T, C & T’s – field relationships AND, categories I’ve included 3 post categories (Bungalows, Dormer Bungalows, Houses)
Post Meta – nothing
Advanced – nothingWhen I run the search, I’m getting posts from all categories showing, rather than just the category selected.
I’d also like to be able to further filter the search results but first of all I need to understand what I’m doing wrong here! I used the free Search & Filter plugin previously with no problems so I’m not sure why I can’t get this to work.
Thanks
Andy
Ross Moderator(Private) July 22, 2015 at 12:07 pm #21871Hi Andy
Lets see if I can help!
So, just so you know, S&F Pro is hugely different to S&F free.
To add all the features and functionality to pro some things from free had to go – because they were limiting the development of the plugin.
Mainly the way URLs change.
In Pro, you have 1 search page for each form, which you define in your admin under “display results”. You can have multiple search pages/forms.
In free, you cannot control the search page, but when selecting tags/categories, the free version “jumps” you to your tag and category archives – all this is built in to WP naturally.
Ok now we’ve got that out of the way.
The easiest way to create a simple test is to follow the instructions here under “a quick tutorial”:
Please follow those exactly and send me a link if you are having problems – I think its the easiest way to get setup.
Thanks
Anonymous(Private) July 22, 2015 at 1:18 pm #21878Hi Ross,
Thanks for your prompt reply, much appreciated.
I’ve managed to get correct results returned using the shortcode, except that if I tick more than one category it returns no results, where I would like it to return both of those categories (ie someone may tick ‘Bungalows’ and ‘Dormer Bungalows’, so they would get both). I’ve set field relationships to ‘OR’ which I thought would be correct but obviously not!
Also, the results aren’t displaying as I’d like (preferably a 4-thumbnail grid) but I’m not really up to speed with PHP so is there a line of code I can insert, or can you point me in the direction of a tutorial?
Ironically, when I followed the ‘As an Archive’ tutorial, the results displayed perfectly – they just weren’t filtered at all 🙂
Thanks
Andy
Ross Moderator(Private) July 22, 2015 at 1:27 pm #21879Hi Andy, to use a layout from your theme you must the archive method, or copy the html structure into a custom template for the shortcode method.
So I guess the next step is to figure out what is causing the issue.
Please check the link in the notes section on:
Which highlight the most common issue of results not displaying correctly – you will most likely have to track down a query in your template file and remove it.
Also, for debugging, I would advise that you disable ajax (if it is enabled) so you can really get a look at what is going on.
Thanks
Anonymous(Private) July 22, 2015 at 4:09 pm #21880Hi Ross,
Thanks again for getting back to me. Having looked at both options now I think the shortcode option is the best for my site, as it gives more flexibility.
So I have a few questions:
1. Having switched back to shortcode, the slug is now appearing as http://houseplansdirect.co.uk/search-house-designs/%20%E2%80%8E/?_sft_category=dormer-bungalow-designs which is causing a 404. I’m not sure where the %20%E2%80%8E is coming from as it wasn’t there before.
2. I still need to determine how to get more than one category showing if selected by the user.
3. I’ve managed to amend your results.php template to show thumbnails the right size, remove the excerpt and meta, but I can’t figure out how to show the results in a grid.
Thanks
Andy
-
AuthorPosts