Questions tagged [datepicker]
The datepicker tag has no usage guidance.
56
questions
1
vote
1
answer
48
views
Gutenberg DatePicker component with time set to zero
I'm using the following code to get and set a date meta value for a CPT in Gutenberg (some code omitted for brevity):
const [meta, setMeta] = useEntityProp(
'postType',
'activity',
'meta'
)...
0
votes
0
answers
86
views
Issue with Date Picker Field Type
While working on a project, I encountered an issue related to the date picker field type. Specifically, I am creating a custom field for date selection using a date picker. However, upon selecting a ...
1
vote
1
answer
981
views
Is it possible to specify a time interval (from, to) in ACF with date picker, or other custom field?
I am working on an online magazine in WordPress PHP (with Advanced Custom Fields plugin). I specify the date of the article's publication with 'date picker' field. Even though for articles ...
1
vote
0
answers
368
views
Compare ACF date field (if exists) and post date and order DESC
I have an ACF date field (same format as post date) and in my Query I want it to be compared to the publish date of the post:
If erstelldatum is not empty use erstelldatum for order
If erstelldatum ...
0
votes
1
answer
141
views
Gravity Forms Multiple Dates Filled by 1st Date
I'm trying to figure out if there is a way to have multiple dates on a form be filled by the first date. I have 14 dates on the form. I want the user to pick the date on the first date and have the ...
0
votes
1
answer
499
views
jQuery Datepicker displays wrong language until interection with the calendar
In a totally custom page, written as a PHP snippet using Woody Snippets plugin, I need to use a jQuery datepicker to select a date.
I imported the necessary files correctly, and also called and set up ...
1
vote
1
answer
1k
views
ACF Custom validation message not showing up
I have two date fields where I want to make sure the "end date" is always later than the "start date".
I added a validation function per ACF's documentation. It does fire, but the ...
0
votes
1
answer
1k
views
datepicker for custom post type admin
Hey guys im trying to get the jQuery datepicker working for the admin section for a custom post type. Essentially I just want a date and then the ability to store that date in the DB then query the DB ...
1
vote
1
answer
4k
views
Min And Max Date With Date Format In Elementor Form Not Working
I am using Min and Max date in the Elementor Form. The Min and Max date are working fine but When I add the Date Format, the Min & Max date is not working and Date Format is working.
My Min & ...
0
votes
1
answer
162
views
Sort custom post type by custom datepicker instead of filtering
I have a custom post type Event that I use in conjunction with ACF. I have a group called event and inside that group I have a field called date_start. And this is the code that I currently have, but ...
1
vote
0
answers
116
views
CMB2 toolkit: Compare 2 Dates and validate the Time
Hello i am using the CMB2-toolkit for Wordpress:
https://github.com/CMB2/CMB2/wiki/Field-Types
I have a Problem where i have 2 Datetimes, where one is the Starting-Time and the other is the Ending ...
1
vote
1
answer
431
views
How to use datepicker.min.js?
On my site I load datepicker.min.js
<script type='text/javascript' src='http://xxx/wp-includes/js/jquery/ui/core.min.js?ver=1.11.4'></script>
<script type='text/javascript' ...
0
votes
1
answer
517
views
Gutenberg publish date datepicker
I'm making some meta boxes to my custom posts, and i need a datepicker
Is there a way to use this wordpress datetimepicker but without the time?
0
votes
1
answer
644
views
What is the propre way to include jQuery UI Datepicker's CSS in plugin?
I was looking for a datepicker, I read in another question's answer that jQuery UI's DatePicker is included in WordPress.
To make it work I needed to add in script inclusions
wp_enqueue_script('...
0
votes
2
answers
186
views
html element to separate php variable strings - ACF datepicker
i am using ACF to display an internationalized date with this code :
<?php
$dateformatstring = "l j F Y";
$unixtimestamp = strtotime(get_field('date'));
?>
<?php echo date_i18n($...
0
votes
1
answer
34
views
How to open an attachment based on the date picker
I am creating an E-Paper kind of functionality in WordPress where the user will have to select a date from the date picker and the corresponding attachment will open. I looked all around but didn't ...
0
votes
1
answer
282
views
Advanced Custom Fields, DatePicker - Check if Set
I am trying an IF statement to check if the user has actually selected a value in the ACF DatePicker but this doesn't validate correctly. Any ideas?
$fxdate = get_field('fl_date');
if (isset($fxdate))...
-2
votes
1
answer
574
views
How to allow multiDatesPicker in wp admin post type?
The WP custom post type already used jquery UI datepicker , but I need to add multidatepicker for on field. I have added
function pw_loading_scripts_wrong() {
echo '<script src="https://cdn....
0
votes
1
answer
513
views
How do I sanitize the str_replace function in javascript variables
I have the following code in the javascript which outputs the date(s). With backslash for that, I'm replacing those strings with the str_replace to remove backslash, but I can't sanitize that using ...
0
votes
1
answer
32
views
how to make wordpress plugin from PersianWebToolkit? [closed]
I want to create a WordPress plugin by developing PersianWebToolkit
it's a datepicker
i just want to say i have a little knowledge in php
i saw someone who do it but i didn't know how to do it.
link ...
0
votes
2
answers
15k
views
How to add Date Picker in Dynamic Add/Remove Custom Fields (Repeater Fields)
I have created Dynamic Add/Remove Custom Fields (Repeater Fields) in my custom Post types. It is working perfectly. I want to add a new JQuery Date Picker field. I tried hard to create code and also ...
0
votes
0
answers
32
views
Save datapicker date into wordpress admin
i have question: http://prntscr.com/frxplp i need when user pick to date in datapicker and press button and filled all field in form http://prntscr.com/frxr7g, need to save this data with selected ...
-1
votes
1
answer
403
views
Datepicker altField and altFormat to save a new meta key/value in a post?
I've created a new metabox for Woocommerce products using the Meta Box plugin that takes in an event date using Datepicker.
I'm using the st-event_start_date metadata to show the date on a grid ...
1
vote
0
answers
233
views
Update Wordpress 4.7.5 to 4.8 caused datepicker shows wrongly [closed]
Update Wordpress 4.7.5 to 4.8 caused data picker problem
hi-sky.net
before updating I used google jquery libraries to avoid userpro conflict
but after updating , stopped userpro and use google ...
4
votes
3
answers
2k
views
Locale filter in conjunction with new datepicker localization
So in WordPress 4.6 they added the localization to the jQuery datepicker to be automatic. I am posting here first because I am not sure if this is actually a bug with WP or if I am doing something ...
0
votes
1
answer
147
views
Restrict days in bootstrap datepicker using checkboxes in submenu
MY SITUATION
I've created a submenu in my Custom Post Type. In this submenu, there are 7 checkboxes for each date(Monday till Sunday). I use these boxes for selecting the days my restaurant is closed....
0
votes
1
answer
749
views
jQuery UI Datepicker error
Somehow, the default jQuery UI Datepicker (loaded by domain/wp-includes/script-loader.php on line 214 in version 4.7 is giving javascript errors in the console. This is the line that loads in the file:...
0
votes
1
answer
571
views
Group/list/sort custom post type posts by date in tabs from acf datepicker field
im working with foundation tabs and i want to sort my custom posts by YEAR from datepicker field. Each tab is a year (2016 2015 etc). When users click on the tab and displays is, all the custom posts ...
-3
votes
2
answers
2k
views
DatePicker in Woocommerce (My Account) Registration [closed]
I have googled for this and, did not find any solution.
I am trying to add Birth date (datepicker) field in woocommerce registration page.
The registration form has been created as per guidance ...
0
votes
3
answers
2k
views
jQuery datepicker not showing on admin menu
Nothing happens when I select the datepicker field.
This is the code for the field:
<input id="sticky_date" name="sticky_date" class="datepicker hasDatepicker" type="text">
The javascript
...
4
votes
3
answers
8k
views
Add `datetimepicker` to form
I have a form where i would like to add a datetimepicker().
I must be doing something wrong.
I have done the following:
In my header.php
<?php wp_enqueue_script("jquery"); ?>
In my functions....
0
votes
1
answer
255
views
datepicker value in mysql
I am using a plugin WP-Types for custom post types in which there is a option to create custom fields in which i created one date field for my requirement. Now what happens when i add any date into it ...
1
vote
1
answer
6k
views
Woocommerce checkout update totals with datepicker
I've added a new date field on the checkout page. I'd like to create a date based delivery fee calculation.
The date field has the 'update_totals_on_change' class. When changing this manually the ...
1
vote
2
answers
3k
views
Query between dates using date picker filter breaks in Wordpress 4.2.1
Original post:
Query between dates using Date Picker fields
I originally made a post last year on this same subject, but seems the update to WP v4.2.1 has broken my filter. In summary, I am using ...
2
votes
2
answers
6k
views
Order and group posts by acf by month and year
How can group posts by month and year by a separate headline?
Example (output with this date format):
Dezmber 2014
- 4. Dez 2014
- 5. Dez 2014
I have a custom field (datepicker) "event_date".
...
1
vote
0
answers
288
views
datepicker works on widgets options page, but not on customizer
I have a widget with a date option field, which works correctly when in the dashboard, but fails to display when on the theme customizer.
I declare the field for the in the form() method like this (...
0
votes
1
answer
7k
views
Adding jQuery datepicker to Custom Post Type Metabox [closed]
I've created a custom post type metabox which displays and functions fine.
The problem is with the datepicker it just doesn't seem to work, when clicking the metabox youre able to type in it rather ...
0
votes
0
answers
1k
views
using ACF datepicker to filter posts on a page
i’m using a wp-query to display posts from a category on a custom post type page.
it works fine, and I’ve been also abble to sort my posts depending of datepicker field called “date_debut”. my posts ...
0
votes
2
answers
5k
views
Query between dates using Date Picker fields
I'm looking to replace an events plugin that i have on my website currently. We realize we don't need a full blown calendar and things like that, we just need to be able to enter in Events with a ...
0
votes
0
answers
1k
views
Loop the posts between two dates selected using jquery datepicker
I went through this link where we can restrict the loop to display the posts only between two dates and it works fine. But if I have a Jquery Datepicker with from and to date, then how can I pass ...
0
votes
2
answers
898
views
jQuery does not work in widget backend
I created a widget which should use jQuery for switching between two views and implement the jQuery UI date picker.
I was wondering why my jQuery code does not work as I noticed that the date picker ...
1
vote
1
answer
3k
views
Advanced custom fields sort repeater by date
I have a repeater field on a page template to show small snippets with a link that needs to be sorted by date (recent 1st). I'm using the current code, but there isn't any sorting in place.
&...
0
votes
1
answer
581
views
How do I convert all custom_field php timestamps in the database to js timestamps?
For the past year, we've been storing date-time values into a custom field _date using strtotime(). There are about 100 PHP date-time stamps in our database from over the past year.
I would really ...
1
vote
0
answers
677
views
date/time-picker and file upload (image) fields for custom fields (e.g. with more fields)
I got used working with the More Fields plugin. But it seems that fields like
datepicker
timepicker
date/timepicker
image upload (media library)
are missing somehow. Is there a plugin which can do ...
2
votes
2
answers
9k
views
Set default date in datepicker of an advanced custom field
I am using Advanced Custom Fields in my WordPress project. In it I have added 2 datepickers as custom fields for pages.
Now the main problem is whenever I add a new page both datepickers by default ...
10
votes
3
answers
14k
views
How Do I Use jQuery UI In My Plugin
It's a sad day in the world when I Google something and it returns nothing. I am trying to use the default datepicker (or ANY datepicker at this point) and am unable to because of my lack of ...
12
votes
2
answers
25k
views
Inbuilt style for jquery-ui-datepicker
I want to use the datepicker that gets bundled with WordPress on the front end of a website. I enqueued jquery-ui-datepicker but the datepicker isn't styled(no js error in console). Is there a ...
0
votes
1
answer
1k
views
Customizing the Jquery Calendar [closed]
I have never used Jquery before so I am quite stuck.
The datepicker calendar that gets displayed is not quite what I am looking for, so I am looking to customize it, but don't even know where to ...
0
votes
1
answer
2k
views
wp_enqueue_script jquery and jquery ui not working
I am using the following script to call my Jquery and Jquery UI as well as a custom-script.js. Currently it works to the point of being able to see the resource in the inspector and the tag's are ...
0
votes
1
answer
1k
views
WP 3.3.1 Cant get jQuery Datepicker to work
at first i want to tell that i HAVE read the post:
jQuery UI Datepicker not working
already.
I followed the instructions, but stll, i cant get it work.
I am using WP 3.3.1 with the standard theme ...