Forums Forums Search & Filter Pro Get Current $SFID active_sfid

Viewing 4 posts - 1 through 4 (of 4 total)
  • Anonymous
    #221400

    I am in my theme folder/search-filter/results.php

    I need a way to get the current SFID.

    I see there is an “active_sfid” field contained in the global $searchandfilter; object.

    How do I access this?

    Trevor
    #221440

    Do you need a different results.php file for each form, which would be the best way. That way, any coding you want to do can be specific to that form? All you do is name the file, fore example, 1234.php.

    Anonymous
    #221704

    ok cool

    1234.php would be for form ID 1234?

    Anyway I figured this out:

    $myquery = $query->query;
    $myid = $myquery['search_filter_id'];

    The differences between form results are very minor

    Thank yoU!

    Trevor
    #221720

    Yes in answer to your question. Thanks for letting me know how you got on and it looks like you have it all figured out. I will close this thread for now.

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