Forums Forums Search & Filter Pro Defaults for Taxonomy Searches

Viewing 8 posts - 1 through 8 (of 8 total)
  • Anonymous
    #69671

    I just purchased Search and Filter Pro. I am trying to get things set up. I have a page that seems to be working as I expect: http://pflow.ascendclient.com/test-page
    I installed the “Custom Taxonomies” plugin as was suggested in the docs. I created Taxonomies for “Levels” and “Capacity”, and then tagged four posts and one page with items from these. The search seems to be working approximately as I’d like but what I want is for ALL of my items to display as a default and have the drop-downs filter the values.
    So, as I see it, I need one of two things: I need to pre-set the drop-down with certain values that I know will return the best results OR I need to understand better how S&F Pro is selecting the default values that it displays.
    Does this make sense? Can you help?
    Thank you in advance,
    Bill

    Trevor
    #69709
    This reply has been marked as private.
    Anonymous
    #69733
    This reply has been marked as private.
    Trevor
    #69783

    The only way that you can achieve what you want (a sort order that a human would think is right but that PHP won’t do) is to create a dummy field with the additional characters added to be able to do the sort. Typically leading 0’s are required.

    Anonymous
    #69814

    I have been successful at modifying the results.php file.
    Is there something similar that can be modified for the search code? I obviously don’t want to modify the code within your plugin.
    Thanks,
    Bill

    Trevor
    #69816

    What is it that you are trying to achieve by modifying the search code? I don’t quite understand (been sat at this desk too long already 🙁 ).

    Anonymous
    #69818

    You told me that I’d have to add a dummy field. In order to sort on that dummy field, I would think that I would need to modify some PHP. I’m just asking where I would go to find said PHP.
    Perhaps I’m not understanding.
    Thanks,
    Bill

    Trevor
    #69820

    If you want a back end sort, in the form settings, the third settings tab allows you to select a Meta key as the sort parameter. ACF field meta key names start WITHOUT an Underscore.

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