Carine Pic
Forum Replies Created
-
Forum: Plugins
In reply to: [CMB2] Date field doesn't display the value in adminHi K15Lmk98,
There is a readme file in my GitHub project where I specify the file I have modified and how to use the modifications:
https://github.com/Lindorie/CMB2/blob/master/readme.mdYou can use yivi’s fork or mine using git (clone the project on your computer), but if you’re not familiar with Github/Git, you can just copy the content of the text_date_timestamp() function (CMB2_Sanitize.php line 211) and then replace the content of the same function in the file in your own project (you will find this file in the CMB2 plugin directory).
https://github.com/Lindorie/CMB2/blob/master/includes/CMB2_Sanitize.php
Don’t forget to follow what I have written in the readme file (Usage) and it should be good.
Good luck!
Forum: Plugins
In reply to: [CMB2] Date field doesn't display the value in adminYeah, I had exactly the same problem before using yivi’s fork.
I don’t understand why it doesn’t work on your project.
However, I’ve also made a fork to fix that issue in another way (but yivi’s fork is better), maybe you can try to use mine: https://github.com/Lindorie/CMB2
Please read the “readme” file in order to use the fork correctly.
Let me know if it works…
Forum: Plugins
In reply to: [CMB2] Date field doesn't display the value in adminHi there,
you should take a look at this conversation: https://github.com/WebDevStudios/CMB2/issues/300
There is a fork from @yivi that you can use until a new release.
The fork: https://github.com/yivi/CMB2
It works perfectly, I’m currently using it on my personal website.
Hope it will help!
Forum: Plugins
In reply to: [CMB2] Date field doesn't display the value in adminSure. I’m not at home today but I reproduced the issue on a different project at work.
So the version of the plugin is the later (Version 2.0.6). I’ve installed it from the back-office of wordpress.
This is the code I used to reproduce the issue:
(functions.php)
https://gist.github.com/Lindorie/2e08c96f112c37d1a368As you can see I used your snippet (otherwise the date format was wrong) but the issue is the same I explain before.
Thank for your help ??
Forum: Plugins
In reply to: [CMB2] Date field doesn't display the value in adminMy problem doesn’t seem to come from the jQuery UI popup, because it works perfectly when I choose a date in the popup (and in the right format).
The blank text_date field appears when I come back to admin to modify a post (or just after updating a post when wordpress reloads the admin page). Seems it is not able to handle the corresponding value from DB? (However, when the day number is lower 12 it fills correctly the field)
The problem exists only when I choose an ambiguous date (like October, 31 or May, 22 saved ’22/05/2015′)… All the dates with a day number > 12.
I’m not sure that my explanations are very clear… Sorry!
Forum: Plugins
In reply to: [CMB2] Date field doesn't display the value in adminSorry if I’m getting into your topic (I don’t know if it’s the right way to do).
I notice that the topic is not resolved and I have the same problem described by bill_baroud02 at the beginning, i.e.
“it shows nothing if the day number is upper 12 or day/month reversed if under 12.”
.
The date with the correct format (d/m/Y) is saved in DB but nothing appears in the admin when I modifie a post. So if I update the post without re-fill the text_date field, it obviously changes the value saved in DB to blank.
Have I missed something to resolve it? (I have the impression that the rest of your conversation isn’t about this problem in particular, but I can make a mistake as I don’t understand all the subtleties of english language, which is unfortunately not my mother tongue.)
Thanks