We are having an issue with filtering dates that have been modified.
we have tried
function my_date_range_filter_query_column( $column ){
return ‘post_modified’;
}
add_filter( ‘date_range_filter_query_column’, ‘my_date_range_filter_query_column’, 10, 1 );
But it does not work.
Is anyone still available to help with this plugin?
]]>Hello,
Can this be fixed?
Warning Declaration of Carbon\Carbon::setTime($hour, $minute, $second = 0) should be compatible with DateTime::setTime($hour, $minute, $second = NULL, $microseconds = NULL) 1
wpdashboardsetup()
wp-admin/index.php:15
doaction(‘wpdashboardsetup’)
wp-admin/includes/dashboard.php:111
DateRangeFilter::adddashboardwidget()
wp-includes/class-wp-hook.php:286
DateRangeFilter::getpredefined_intervals()
wp-content/plugins/date-range-filter/date-range-filter.php:295
wp-content/plugins/date-range-filter/includes/vendor/Carbon.php:2127
Plugin: date-range-filter
Thanks,
]]>I love this plugin, Now I need to bring filters in comments page? Is there any support for this? Or is a new feature which we need to build?
Hope this takes the plugin to next level.?
]]>We have a site which takes orders for cakes and the team in the shop need to show orders in the order they are required, rather than the order they are placed.
Is this possible with this plugin?
]]>Hello Team,
Kindly verify the below issue, I think it is compatibility issue with PHP 7.1 (PHP 7.1 Version compatible)
Warning: Declaration of Carbon\Carbon::setTime($hour, $minute, $second = 0) should be compatible with DateTime::setTime($hour, $minute, $second = NULL, $microseconds = NULL)
I just switched from PHP 5.6 to 7.2, and Date Range Filter is throwing the following warning…
Warning: Declaration of Carbon\Carbon::setTime($hour, $minute, $second = 0) should be compatible with DateTime::setTime($hour, $minute, $second = NULL, $microseconds = NULL) in /home/mysite/public_html/wp-content/plugins/date-range-filter/includes/vendor/Carbon.php on line 2127
… any chance of a fix, or a pointer?
]]>I installed the plugin however it is not showing up. Is there something I need to do to Set up the plugin.
Thanks,
Krina
Would it be possible to allow manually typing in the dates for a custom date range? If you want to find something from 3 years back you have to click 36 times otherwise. The date picker is great, but being able to highlight and delete/change the dates would be helpful as well.
]]>Hi, you have in code ‘default’ in textdomain. It should be ‘date-range-filter’
Thx
Where to place the code?
“function my_date_range_filter_query_column( $column ){
return ‘post_modified’;
}
add_filter( ‘date_range_filter_query_column’, ‘my_date_range_filter_query_column’, 10, 1 );”
Hi,
when you’ve been coding the plugin you seem to have been thinking that filtering to future is unnecessary. However, this is necessary event with posts as they can have a future publish date. It would be more useful to not restrict the maxDate in the admin.js datepicker or atleast provide a filter for it. I just removed the lines relating to dateOffset.
A-P
]]>Hi,
this plugin conflicts with WooCommerce. The fields with “date-picker” class get picked up by WooCommerce on the orders screen and the date format is changed from YYYY/MM/DD to YYYY-MM-DD, which of course messes up the whole filtering. I changed the classes to date-range-picker which works, or you could namespace them (which would be better) e.g. drf-date-picker.
A-P
]]>Hi,
the textdomain update on 0.0.8 caused the plugin to stop from loading. I cannot see it in the “Plugins” section of admin screen. Also, some additional files, such as svnurl and a bin folder came with the commit, maybe you committed extra development files?
A-P
]]>Hi,
the textdomain is not loading. Please add this to the setup() function in date-range-filter.php:
load_plugin_textdomain( 'date-range-filter', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' );
]]>
Hey dev,
I’m using the WP Events Manager plugin for event management. I see this works great on to filter by date except I’d like to filter on a custom field of start_date instead of post date or modified date. Any Suggestions on how to do this and restrict only to Events post type? Thanks very much.
]]>WP 4.1
jQuery 1.11.1
After setting for example last 7 days and submitting filters, the url looks like this:
wp-admin/edit.php?orderby=date&order=asc&s&post_status=all&post_type=shop_order&action=-1&m=0&date_predefined=last-7-days&date_from&date_to=2015%2F02%2F05&method_id&payment_method_id&_customer_user&filter_action=Filtrovat&paged=1&mode=list&action2=-1
no date_from is set that means that in the function filter_main_query
defined in date-range-filter.php, the condition fails and no date range of the query is set.
by debugging in admin.js, the code
console.log({
key: $wrapper.find( 'select.field-predefined' ).find( ':selected' ).val(),
start: $wrapper.find( '.date-inputs .field-from' ).val(),
end: $wrapper.find( '.date-inputs .field-to' ).val()
});
that is put in predefined.on({
(line 61)
gives me this console output: Object { key="last-7-days", end="2015/02/05", start=""}
no start date set, also whatever set, end date stays the same.
Do you have any idea what may be wrong?
values of to_val
and from_val
are correct, and outputting to console is called after setting values to input fields, just seems to me that they are not set properly..
Thank you.
]]>Hi, because you removed the input date range? Now just a ‘select’ shown
]]>Hi there, excellent plugin.
Just wanted to note that the Carbon dependency is missing in the WP repo version. I downloaded the master branch from the Github repository and it’s all there.
Thank you very much!
]]>Hi ??
Great idea for a plugin … just testing it out … but when I active the plugin my list of posts go blank.
The top part of the admin page is still there … so essentially everything after the point where your plugin should appear … disappears.
I tested it on a basics WP setup … 2014 theme with no other plugins.
If you need any other info let me know … would love to get it up and running on my site ??
Kind regards
]]>