Forums Forums Search & Filter Pro Date range picker for ACF field

Tagged: , ,

Viewing 3 posts - 1 through 3 (of 3 total)
  • Trevor
    #229239
    This reply has been marked as private.
    Anonymous
    #229319

    Sorry, before that. Is there a way to dump the query S&F is performing?

    Trevor
    #229325

    Our plugin send a list of matching ID’s to the WordPress database, having worked out which posts match the criteria, the the actual final query may not be of much use. It will send a query to our cache tables though. Query Monitor plugin should show you that. To get a breakdown of the actual filters in use, this code (you need to change the ID in this code – 1234 – to that of your form) will dump the array to the screen:

    <?php
    global $searchandfilter;
    $sf_current_query = $searchandfilter->get(1234)->current_query()->get_array();
    echo '<pre>',print_r($sf_current_query,true),'</pre>';
    ?>
Viewing 3 posts - 1 through 3 (of 3 total)