Search Results for 'sf_edit_query_args'

Forums › Forums › Search › Search Results for 'sf_edit_query_args'

Viewing 3 results – 201 through 203 (of 203 total)
  • Author
    Search Results
  • #26651

    Ross
    Keymaster

    Hey Sergey

    I think we’re getting confused.

    So, what you would like to do (as an example) is pass the category through to S&F, in the shortcode or something similar.

    Well, this is not yet possible, but you can use the shortcode like you mention above, and then use the filter sf_edit_query_args in the link above to limit the tag/category to whatever you like.

    So in this way it is dynamic and according the cat/tag you supply via some custom php code.

    Does that make sense?

    Thanks

    #26335

    Ross
    Keymaster

    Hmm what are you trying to do, find out what the current search is, and modify the query based on certain criteria?

    What I think you might want to do is, check what the current user has searched for by using the info here:

    http://www.designsandcode.com/documentation/search-filter-pro/accessing-search-data/

    and then run sf_edit_query_args – if you want to check sf_edit_query_args after it has some values from S&F then run it with a lower priority (eg 100):

    add_filter( 'sf_edit_query_args', 'sf_filter_query_args', 100, 2 );

    Thanks

    #26291

    Anonymous
    Inactive

    So I’ve found that there is a new filter sf_edit_query_args which is exactly for this purpose. But when I try to hook there the $query_args argument is empty.. :-/

Viewing 3 results – 201 through 203 (of 203 total)
Search & Filter Support
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

We also use cookies to store items in your cart as well as allowing your to login on the site.

You can adjust all of your cookie settings by navigating the tabs on the left hand side.

By continuing to use this site, you also agree to our Privacy Policy.