Is it possible to specify a time interval (from, to) in ACF with date picker, or other custom field?

There’s no native “Time Interval” field type in ACF, but you could: Use a third-party custom field like the “Date Range Picker” provided by ACF Extended (it’s a commercial plugin that adds features to ACF). Use 2 distinct native Date Picker fields for “from” and “to”, possibly inserted inside a Group. You may take advantage … Read more

get_the_date() return always UTC+0 [duplicate]

date_default_timezone_set can alter the output of a new DateTime. Not sure how it will affect get_the_time. $date = new DateTime( get_the_time(‘c’) ); $date->setTimezone(new DateTimeZone(‘Europe/Warsaw’)); echo $date->format(‘c’); $date = new DateTime(); echo $date->format(‘c’); // 2015-12-18T18:21:31+00:00 $date->setTimezone(new DateTimeZone(‘Europe/Warsaw’)); echo $date->format(‘c’); // 2015-12-18T19:21:31+01:00 date_default_timezone_set(‘Europe/Warsaw’); $date = new DateTime(); echo $date->format(‘c’); // 2015-12-18T19:21:31+01:00

Can a scrollable date picker be done in WordPress for archives?

I’m going to leave the JavaScript/jQuery of the scroller up to you. But basically, run a loop of dates in that scroller. Then, when clicked, pass that date via AJAX to the server. Then use that date to query_posts, which you then return and insert into your dom. Use http://www.garyc40.com/2010/03/5-tips-for-using-ajax-in-wordpress/ for the AJAX functionality. I … Read more