Navigation überspringen

[Gelöst] Views filter controls

Dieser Thread wurde gelöst. Hier ist eine Beschreibung des Problems und der Lösung.

Problem:

Have a dropdown display a list of start dates for an appointment custom post type.

Solution:

There isn't such kind of built-in feature within Toolset search form, the custom date field will display as a datepicker in frontend search form by default.

Relevant Documentation:

This support ticket is created vor 4 years, 4 months. 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 -

Zeitzone des Unterstützers: Asia/Hong_Kong (GMT+08:00)

Dieses Thema enthält 3 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von Luo Yang vor 4 years, 4 months.

Assistiert von: Luo Yang.

Author
Artikel
#2261763

Tell us what you are trying to do?
Have a dropdown display a list of start dates for an appointment custom post type.

Is there any documentation that you are following?
Not so far, no.

Where am I currently?
The dropdown is there, but it shows the date as UNIX timestamp and in contrast to other Toolset components those filter controls don't seem to offer a date format option that affects the output in the dropdown list. So I get UNIX numbers instead of a calendar date. To state the obvious: I need the latter.

Any workaround or some JavaScipt to add (I suck with JS)?

Regards,

Sven

#2262487

Hello,

I assume we are talking about a custom date field.

If it is, there isn't such kind of built-in feature within Toolset search form, the custom date field will display as a datepicker in frontend search form by default.

You can add a feature request for it:
https://toolset.com/home/contact-us/suggest-a-new-feature-for-toolset/
Our developers will evaluate it.

According to our support policy, we don't provide custom codes support, if you insist on custom JS codes workaround, you can try to follow article to change the timestamp value into date format:
versteckter Link

For your reference.

#2267751

Hi Luo,

yes, it is a custom date field. As the consulttion date is a common order criterion within a doctor's single patient file, yes, this is a must-have. So I shall request it as you requested.

The ticket can be closed for now. Thanks for your assistance.

Regards,

Sven

#2268901

As your request, closing this ticket