This support ticket is created 6 years, 3 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.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
My custom search is working good, but I was wondering if is it possible to share a link so people only sees courses starting between today and 30 days from now?
I explained : people can choose two dates in the search section, to see which courses between date A and B. When tey do so, the dates are shown in URL using Unix timestamp (ex.: ?debut_max=1535068800). For other "static" values, I can use the text value to share the URL (ex. : ?wpv-location=Online). Is there a way to add a special parameter in URL to "dynamically" show courses beginning in 30 days or less from today?
I could create another view with a predetermined window of 30 days from today, but users cannot reset the values (or choose their own dates) to see all the courses... I would like to have only one view.
Yes, that's it. Actually, I want to put a custom link in my menu so people can see which courses are starting in the next 30 days. And, if the want to change the search parameters (ex. : only see online courses, or starting in the next 60 days), then they can change the filtering options.
Well - so we need to compare the course start date field and it should be less than 30 days when view loaded first time - correct? If Yes, Could you please tell me the name of your custom date field and share access details with me.
*** 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 would additionally need your permission to de- and re-activate Plugins and the Theme, and to change configurations on the site. This is also a reason the backup is really important. If you agree to this, please use the form fields I have enabled below to provide temporary access details (wp-admin and FTP).
I have set the next reply to private which means only you and I have access to it.
I see what you have done, but it's not what I had in mind if I can say. The thing is that with this method, if people go to the search page, the only sees the courses starting in 30 days or less, but they don't know it.
I want people that goes to the search page to see all courses. But, I want to put a link in my menu (or a button) so that people that goes to the search page see a "pre-filtered" search of courses starting soon. Given that the url parameters allows to do something like that, that's what I was looking for (ex. : ?start_from=XYZ&start_to=ZYX). For example, if I put a link with the location in the url parameter, it will only shows the courses corresponding to that location.
So, maybe it's not possible to have that kind of behavior (to have a "?start_from=TODAY&start_to=TODAY(30)") kind of thing and should make a different view, on a different page, with that filter...
Yes - its better you should create a new page and create a separate view that shows future 30 courses and add this view to this page and add a link to the page you created.