[Résolu] Date filtering in views for custom Date Field not working
This support ticket is created Il y a 3 années et 11 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 have a custom date/time field and I am trying to create a view that only displays posts that have dates in that field from 'today'. Whenever I select that field in the views filter and select 'today' nothing shows up. I've tried 'unsigned' as other supporters have suggested. No options (I think I have tried them all) have worked.
When you use the option Today() you will only get posts that have their custom fields set to the literal date of Today's date rather than the day itself.
However the filter on the view should be set to a number equal to TODAY.
Please send me a screenshot of your query filter settings so that I can have a look.
Assuming that Work Start is a datepicker field then the value is being stored as a Timestamp. So you will need to set it to A number instead of Datetime.
If you tried this and it still doesn't work. Please provide admin access to the website as well as a link to the page where this view is on so that I can have a more detailed look.
Not sure how active this site is as i'm seeing that its an intranet site.
However I've setup the filters to get the date value of today and tomorrow.
So the filter is set to filter for dates timestamp that are equal to or greater than or less than tomorrow. So it should only show the posts for today only.
I've also added a test time to show this. lien caché
So it is kinda working. But it looks like it's basing it on server time which I'll have to fix on my own...
So if I were to create multiple views similar to the one that is there now, could I create one for days of the week then IOW, one view to display posts for monday, another for tuesday, etc... based upon the current week?