Navigation überspringen

[Gelöst] Front End date reporting

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

Problem:
The user would like to create a filter on dates and be able to choose posts that are between two dates.

Solution:
You can follow our document to set up the custom date field filter:
https://toolset.com/documentation/user-guides/date-filters/

For example, edit the view, in section "Query Filter", if you can not find it, click "Screen Option", and enable the option "Query Filter", edit the date field filter according to above document, when inserting a query filter to test a date custom field you should use the UNSIGNED option

Relevant Documentation:

This support ticket is created vor 4 Jahren, 5 Monaten. 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)

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

Zuletzt aktualisiert von larryL vor 4 Jahren, 4 Monaten.

Assistiert von: Jamal.

Author
Artikel
#1717477

How can I allow users to filter between post dates in a view? For example, I'd like to display 'start date' & 'end date' options that are based upon the post date for a custom post type's publish (or modified date). So they could enter 12/20/2018 as their start date and 3/17/2020 as their end date and it would display all posts from that post type within those dates.

Thanks!

#1717985

Hello and thank you for contacting the Toolset support.

You can follow our document to set up the custom date field filter:
https://toolset.com/documentation/user-guides/date-filters/

For example, edit the view, in section "Query Filter", if you can not find it, click "Screen Option", and enable the option "Query Filter", edit the date field filter according to above document, when inserting a query filter to test a date custom field you should use the UNSIGNED option

Check this article too https://toolset.com/documentation/user-guides/views/filtering-views-query-by-date/

#1718265
datefilter.PNG

I tried to add the post date field as shown in the doc you linked to but the fields are different from your example. There is no way to make it 'unsigned'.

#1720567

You will, first, need to choose "Between those" from the dropdown, then you will have new input to complete the configuration.

If you still encounter any issues, I wonder if you could allow me temporary access and I'll check that closely and take some screenshots for you. If you agree, your next reply will be private to let you share credentials safely. ** Make a database backup before sharing credentials. **
If you allow me temporary access, please provide more details about the involved view, custom post types, etc.

#1723257

My issue is resolved now. Thank you!