- This topic has 3 replies, 2 voices, and was last updated 6 years, 11 months ago by .
Viewing 4 posts – 1 through 4 (of 4 total)
Viewing 4 posts – 1 through 4 (of 4 total)
Forums › Forums › Search & Filter Pro › Date range picker for ACF field
Tagged: acf, date, date picker
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>';
?>