Reply To: Date filters not working

#10689
Ernest Marcinko
Ernest Marcinko
Keymaster

Hi!

Thank you very much for your kind words!

I’ve looked into the code part responsible for displaying the date, and there appears to be a minor issue there exactly as your described. To resolve it, you will have to make a change on one of the plugin files, just follow this guide:

0. Before starting, make sure to have a back-up copy of everything. I once accidentally deleted my website root directory, and struggled without back-up.

1. Open up the wp-content\plugins\ajax-search-pro\includes\views\asp.shortcode.date_filters.php plugin file on your server and navigate to line 28, which is:

$_dft_v = $_dff['date'];

.. this is the problematic code.

2. Change that line to simply:

$_dft_v = $_dft['date'];

3. Save the file, and re-load the search page, it should be okay now.

—–
The date format is unfortunately hard coded within the javascript files, which would not be an issue to change, but there is a bigger problem. The format is used as it is (without conversion), so changing it will break it’s functionality immediately. I’m definitely going to add an option into the upcoming release to change the format.

Best,
Ernest Marcinko

If you like my products, don't forget to rate them on codecanyon :)