Automattic / Automattic/WP-Job-Manager
Add Url query based on date range
- Dominant language
- PHP
- Stars
- 899
- Forks
- 369
- Avg merge
- 11h 37m
- Merged PRs (30d)
- 12
Description
This has been requested in 5466596-zen:
>I wanted to reach out and ask question about how I would go about setting a date range if possible in a url query for the most recent listings on our site. But the tricky thing we would like to be to control the date range that the listings fall under. So an example would be all the listings from 08/01/2022 - 08/08/2022 would be what we want the url query to pull.
We have [shortcodes](https://wpjobmanager.com/document/shortcode-reference/) to show the most recent jobs without filters and pagination, but we haven't implemented it with the date ranges selection feature yet.
I noticed the [sMyles' Search and Filtering plugin](https://plugins.smyl.es/wp-job-manager-search-and-filtering) has this specific feature not deployed yet, as it's still in development:
>Field Types in Development
Date Picker (Range & Single)
Contributor guide
Research direction
Start with the shortcode entry points described in the linked shortcode reference and trace how URL query parameters are used for recent listings. Use the 08/01/2022–08/08/2022 example to define the expected result, and consider the related Search and Filtering plugin for context; done means a shortcode URL can request listings for the specified date range.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php, wordpress
- Domain
- backend-api-design, web-dev
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100