Change date format in Package Form
This topic contains 16 replies, has 3 voices, and was last updated by Kiran 6 years, 7 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support TicketTagged: snippet
-
AuthorPosts
-
March 4, 2019 at 5:15 pm #472395
My dates are showing up as Year first even though in wordpress i have chosen, m/d/y, also time is in 15 minute increments how can I change that to 30 minute increments
March 5, 2019 at 3:57 am #472488Hello,
There isn’t an option to switch to 30 minute increments at this time but we will look at that for future versions.
About the display, the WP settings should control the front end display.
I just tested it working on our testbed, but, to make sure, are you talking about the Event Dates field?
Try resaving the WP setting, and then the field and checking the display and let us know.
March 5, 2019 at 6:30 pm #472692This reply has been marked as private.March 5, 2019 at 6:40 pm #472697Sounds like cache.
GDB will be retired with GDV1.
Server cache?March 5, 2019 at 6:46 pm #472702how do I clear server cache, its inmotion hosting, so supercache is still recommended with these settings, do you think it could clear server cache too? (I am not a cache expert)
Under Settings>WP Super Cache>Advanced make sure to set the following settings:
Enable: Don’t cache pages for known users.
Enable: Don’t cache pages with GET parameters. (?x=y at the end of a url)March 5, 2019 at 6:55 pm #472705This reply has been marked as private.March 5, 2019 at 9:05 pm #472751This reply has been marked as private.March 6, 2019 at 5:16 am #472813This reply has been marked as private.March 7, 2019 at 8:31 am #473288Hi Carin,
My dates are showing up as Year first even though in wordpress i have chosen, m/d/y
Event input field date format set from GeoDirectory > Settings > Events > Input date format.
—time is in 15 minute increments how can I change that to 30 minute increments
Use following snippet to change time minute increment.
/** * Set event fields time interval. */ function gd_snippet_190307_event_time_increment( $interval ) { $interval = 30; // In minutes return $interval; } add_filter( 'geodir_event_time_increment', 'gd_snippet_190307_event_time_increment', 10, 1 );Kiran
April 20, 2019 at 7:45 pm #481952April 22, 2019 at 12:09 pm #482103This reply has been marked as private.April 22, 2019 at 12:52 pm #482111yes, but when someone clicks into the field it starts at 00:00, no event is going to start then, https://www.screencast.com/t/8LgpnpgUm
April 22, 2019 at 1:33 pm #482134If you want to remove 00:00 from list then use following snippet, but it will also remove that option from “Ends at”.
function gd_snippet_190422_event_schedule_times( $times ) { if ( isset( $times['00:00'] ) ) { unset( $times['00:00'] ); } return $times; } add_filter( 'geodir_event_schedule_times', 'gd_snippet_190422_event_schedule_times', 10, 1 );Kiran
April 22, 2019 at 1:49 pm #482138I did not want to remove 00:00, just have it open at the 10:00 when clicked into, instead of 00:00
April 22, 2019 at 2:03 pm #482140It is already happening. I clicked in input and it shows me default to 10:00.
Kiran
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket