Skip Navigation

[Resolved] Filter doesn't work

This support ticket is created 3 years, 6 months ago. 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.

Sun Mon Tue Wed Thu Fri Sat
9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 - - 9:00 – 13:00
14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 - - 14:00 – 18:00

Supporter timezone: Africa/Casablanca (GMT+01:00)

This topic contains 4 replies, has 3 voices.

Last updated by Nigel 3 years, 6 months ago.

Assisted by: Jamal.

Author
Posts
#2104683
Immagine 2021-07-02 121008.jpg
Immagine 2021-07-02 120904.jpg
Immagine 2021-07-02 120804.jpg
Immagine 2021-07-02 120728.jpg

Hi,

in attechement some screenshot of a template I made where I've a list of Date's Custom Fields.
I try to filter the list with the date (greater o equal than...) but it doens' work correctly.
Why?

Regards
Alex

#2104737

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Toolset date custom fields are stored as UNIX timestamps, i.e. the number of seconds since 1 Jan 1970.

If you add Query Filters for these date fields, they should be compared as NUMBERS and not as DATES (a different format).

If you add front-end filter controls for such date fields then the value submitted must be a timestamp. It's not reasonable to think that users are going to enter a timestamp in a free-form text box, so you should insert the filters with the default datepickers, which will convert the date selected by users to a timestamp before submission.

#2104797
Immagine 2021-07-02 144123.jpg

Thank you Nigel,

How Is it possible to localize the date picker in Italian?
And change the color theme?

Regards
Alex

New threads created by Jamal and linked to this one are listed below:

https://toolset.com/forums/topic/localize-datepicker-and-fix-its-style/

#2104809

Hello Alex and thank you for contacting Toolset support.

For support rules, we are able to handle only one issue at a time. This helps us to bring you a better service and also helps other users to find all the information here exposed. For that reason, I have created a new ticket to handle your latest request.

If you believe that your initial question was answered, please mark this ticket as resolved.

#2104811

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Screenshot 2021-07-02 at 13.48.42.png

The datepicker should already be localised in Italian if the site language is Italian.

I just tested that on my local site and it worked correctly (screenshot).

If it is not working for you can you check if it works when you switch theme (e.g. to twentytwenty) and disable non-Toolset plugins?

If that doesn't help we may need to take a closer look at your site to identify the problem, for which we'll set up a private reply to get credentials from you.

But first please check if there is a conflict from your theme or another plugin.

Regarding styling, you'd need to use CSS to override the existing styles.

Here's an example from another thread aiming to do the same: https://toolset.com/forums/topic/datepicker-styling/#post-583732