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
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
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.. :-/