Forums Forums Search & Filter Pro Displaying results in relevant page

Viewing 10 posts - 1 through 10 (of 11 total)
  • Ross Moderator
    #27946

    Hi there

    Unfortunately S&F Pro doesn’t use the taxonomy archive URLs for searching.

    Please check the demos:

    http://demo.designsandcode.com/sfpro-movie-reviews/
    http://demo.designsandcode.com/sfpro-woo-mystile/shop/

    These also behave in the same way.

    S&F Pro is for creating a search page – so whenever a user interacts with the form, they will either be redireced to the search page or it will happen with Ajax.

    That being said, you do clearly have an issue above with the ? not appearing in the URL which is causing you an error on the search results.

    Could you ensure you are using the latest 2.0.2 version?

    Also, what is your display method for your results? (can be found in the “display results” tab)

    Check here for the correct way to setup your method:

    http://www.designsandcode.com/documentation/search-filter-pro/search-results/#Display_Results_Method

    Thanks

    Anonymous
    #27972

    Thanks you. All is good now.

    One thing though, I want to change the _sft_ prefix to something like location_

    I did a search and replace on everywhere inside the plugin where there was _sft_ to location_

    But it completely destroyed the search (0 results every time).

    So I un-installed, re-installed the plugin and rebuilt a search form.

    But still no go. As long as the prefix is not _sft_ the search is ruined.

    I couldn’t figure out why.

    These are the lines where I replaced _sft_ :

    class-search-filter-post-cache.php –
    20.725 array_push($filters, “_sft_”.$field[‘taxonomy_name’]);
    38.682 $insert_arr[“_sft_”.$taxonomy_slug] = array();
    38.823 array_push($insert_arr[“_sft_”.$taxonomy_slug], $term->term_id);

    class-search-filter-config.php
    4.356 array_push($filters, “_sft_”.$field[‘taxonomy_name’]);
    4.721 array_push($fields, “_sft_”.$tax_field);

    class-search-filter-display-shortcode.php
    342 define(‘SF_TAX_PRE’, ‘_sft_’);

    Can you help me?

    Anonymous
    #27973

    My Display Results method is shortcode, if this is relevant.

    Anonymous
    #27974
    Ross Moderator
    #27975

    This is not supported I’m afraid – I’m not sure what the issue is, but I was planning on making this customisable at some stage / set by the user – however I haven’t got round to this yet.

    Thanks

    Anonymous
    #27977

    I see. I have seen it implemented with your plugin in another site so it is possible.

    I just can’t wrap my head around why this does not work…

    Anonymous
    #28033

    Yellos – did you ever find a way to get this working?

    Anonymous
    #28050

    No.

    I even went to the MySQL db and replaced all references of _sft_ with location_, but still no go.

    Unless I’m doing something stupidly wrong this is pretty bizzare.

    Anonymous
    #28051

    By the way, as to my original topic, if you want the search results to link to the relevant page when it searches through only 1 field, just create relevant htaccess/web.config rules

    mydomain.com/?_sft_XX=YY ==> mydomain.com/XX/YY

    Anonymous
    #28077

    Hmm that’s strange. One of those instances where it should work but just doesn’t, hate those.

    So you were able to filter results through one field by adding to the .htaccess file?

    I am looking to filter the metadata only on Relevant category pages.
    mydomain/download/category/filter

    (filter through meta-data)

    and then apply that filter only to downloads on that relevant category page. Is this similar to what you were able to do?

Viewing 10 posts - 1 through 10 (of 11 total)