Skip Navigation

[Resolved] View with a datepicker, searching on custom date field not working

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

Our next available supporter will start replying to tickets in about 1.86 hours from now. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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: Asia/Kolkata (GMT+05:30)

This topic contains 7 replies, has 2 voices.

Last updated by treyD 4 years, 4 months ago.

Assisted by: Minesh.

Author
Posts
#1685765

Tell us what you are trying to do?
I want a search page that does an ajax refresh on date search for posts, with a custom field with unix timestamp
Is there any documentation that you are following?
Yes I am following all the posts in the forum I can find and any relevant docs.
Is there a similar example that we can see?
I don't have any
What is the link to your site?
hidden link

#1686001

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Can you please share access details so I can check how you setup your view and its associated configurations.

*** 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.

#1688465

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

I would like to have little more information.

What posts you want to displayed as results:
- Display the posts whose date is greater than or equal to selected date?
- Display the posts whose date is less than or equal to selected date?
- Display the posts whose date is the current date of selected date?

#1689183

For this view, I want to display the DHTms post whose 'Chart Date" equals the selected date in the datepicker, and display it when the picker date is manipulated.

I would eventually like to have another option to select a date range, but this is less important right now.

Thank You!

#1689637

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Ok - Great. Thank you for the clarification.

Before I make any changes to your site, I found that you are using really outdated Toolset plugins. We always recommend running your site with the latest stable release plugin version.

*** Please make a FULL BACKUP of your database and website.***
May I kindly ask you to update ALL Toolset plugins to it's latest release. Could you please update ALL Toolset plugins to it's latest officially released version. You can download the latest plugin release from your accounts page:
=> https://toolset.com/account/downloads/

Once you update it, I will be happy to add the fix for your issue.

#1693181

I've updated all the plugins, and installed some of the new ones that weren't installed before.
Thanks for pushing ahead with this.

#1702569

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Can you please check now: hidden link

I've changed the "Query Filter" for your custom date field from the "Query Filter" section as given under:

Select items with field:
Chart Date is a number equal to URL_PARAM(wpv-wpcf-chart-date)

Can you please confirm it works as expected.

#1702893

Yes Minesh, that worked! The site loads the charts as expected now, on date change.
I would like to restrict loading all the data on the first pageload, but that is not crucial. If there's a quick answer to how to achieve that, it'd be welcome.

Thank You!