Questions tagged [datepicker]

The tag has no usage guidance.

0
votes
1answer
21 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
1answer
27 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
0answers
13 views

how can I add other regional to cmb2 datepicker ui

I want to use the datepicker-fr instead of default cmb2 Datepicker. How can I change the default display of Datepicker in cmb2 text-date to the datepicker-fr?
0
votes
1answer
29 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
1answer
429 views

Undefined fieldId in gform.addFilter for limiting dates in datepicker - Gravity Forms

I've added support for datepicker on date fields in entry detail edit admin page of Gravity Forms. I did this by simply enqueuing the gform_datepicker_init script in admin_enqueue_scripts hook. This ...
0
votes
1answer
20 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
1answer
50 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
1answer
283 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
1answer
275 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
1answer
29 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
2answers
7k 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
0answers
25 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
1answer
238 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
0answers
222 views

Update Wordpress 4.7.5 to 4.8 caused datepicker shows wrongly

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
3answers
841 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
1answer
113 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
1answer
448 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
1answer
222 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
2answers
1k 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
3answers
832 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 ...
0
votes
3answers
4k 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
1answer
223 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
1answer
3k 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
2answers
2k 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
2answers
3k 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
0answers
254 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
1answer
5k 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
0answers
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
2answers
3k 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
0answers
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
2answers
752 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
1answer
2k 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
1answer
397 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
0answers
627 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 ...
1
vote
1answer
6k views

Set default date in datepicker of the advance custom field

I am using advance custom field in my wordpress project. In it i have added 2 datepickers as custom fields into page. Now the main problem is whenever i add new page both the datpicker by default ...
8
votes
3answers
13k 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 ...
11
votes
2answers
20k 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
1answer
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
1answer
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
1answer
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 ...
0
votes
2answers
10k views

Uncaught TypeError: Object #<Object> has no method 'datepicker' [closed]

I want to use jQuery Datepicker in my website. However when I use the same I get the following error. Uncaught TypeError: Object # has no method 'datepicker' I've googled on this for quite sometime. ...
0
votes
2answers
3k views

Convert WordPress date format to jQuery UI Datepicker format

I wrote the following function to convert the current WordPress date format into a format that can be recognized by the jQuery UI Datepicker: From: http://codex.wordpress.org/Formatting_Date_and_Time ...
4
votes
4answers
55k views

jQuery UI Datepicker not working

i want to add a datepicker on a custom page but i doesn not work. WP version is 3.2.1. Those are the init string i used on wp code: wp_enqueue_script('jquery'); wp_enqueue_script('jquery-ui-core'); ...
5
votes
3answers
14k views

Add a Jquery Datepicker to custom field in post edit

I would like to add a custom field that is set by a jquery datepicker ui in the post edit panel. Im new to wordpress, so Im not sure how to go about adding something like this. I haven't had much luck ...
2
votes
1answer
7k views

Add jQuery UI datepicker to admin panel

I created a custom post type with a couple of fields where the user can enter the start date and the end date for a project. I am trying to implement the jQuery datepicker but nothing happens when I ...
3
votes
2answers
17k views

Convert jQuery Datepicker Format to SQL Date Format

I set the jQuery Datepicker format to D d.m. displayed as Th 3.3. for a custom meta field that I want to use to sort posts. In SQL, the custom meta field is saved as D d.m. I would like to display ...