Problem with date comparison for custom fields
This: date( ‘Y-m-d’, strtotime(‘-6 hours’) ); Is going to spit out something like 2011-11-11 If your date picker is using the format dd-mm-yy, then comparing the two is not going to work. dd-mm-yy, if it’s what’s in the field on post save/update, is what’s going to be saved as the meta_value. The meta value is … Read more