[Résolu] converting date to time from a toolset custom field array
This support ticket is created Il y a 1 année et 7 mois. There's a good chance that you are reading advice that it now obsolete.
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
Aucun de nos assistants n'est disponible aujourd'hui sur le forum Jeu d'outils. Veuillez créer un ticket, et nous nous le traiterons dès notre prochaine connexion. Merci de votre compréhension.
I'm using Toolset fields in my single-events.php template.
The start date and end date are displaying fine but when I try and use date() to turn the date into a time this is not dislaying anything other than 12:00 for both start and end time. You can see this on this page: lien caché underneath the image and heading.
I've attached a screenshot of my .php template.
I've also included a screenshot of the custom fields in the backend of WordPress.
Hello. Thank you for contacting the Toolset support.
Can you please share admin access details and FTP so that I can see whats going wrong there.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.
I've adjusted the code to get the time for start and end date within your single-events.php file as above. You can apply the same change wherever applicable.
I can see the correct time is displayed on frontend:
- lien caché