Forums Forums Search & Filter Pro Search Results incorrect

Viewing 7 posts - 1 through 7 (of 7 total)
  • Anonymous
    #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 – nothing

    When 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
    #21871

    Hi 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”:

    http://www.designsandcode.com/wordpress-plugins/search-filter-pro/docs/display-results/with-a-shortcode/

    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
    #21878

    Hi 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
    #21879

    Hi 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:

    http://www.designsandcode.com/wordpress-plugins/search-filter-pro/docs/display-results/as-an-archive/

    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
    #21880

    Hi 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

    Anonymous
    #21946

    Hi Ross,

    Sorted it out now thank you.

    Regards

    Andy

    Ross Moderator
    #22035

    🙂

Viewing 7 posts - 1 through 7 (of 7 total)