Automattic / Automattic/WP-Job-Manager
Expired job permalinks don't retain specified format
- Dominant language
- PHP
- Stars
- 899
- Forks
- 369
- Avg merge
- 11h 37m
- Merged PRs (30d)
- 12
Description
When using a shortcode like
`[jobs post_status="publish" per_page="5" show_filters="false" show_categories="false" orderby="newest"]`
(or just `[jobs post_status="publish"]`)
and a permalink structure like `http://test.com/sample-post/`
Correctly results in job listing URL like : http://test.com/my-job-listing/`
However, creating a jobs shortcode to display expired listings, such as 👍
`[jobs post_status="expired" per_page="5" show_filters="false" show_categories="false" orderby="newest"]`
or just `[jobs post_status="expired"]`
leads to 'Plain' permalinks, such as http://test.com/?post_type=job_listing&p=74
WPJM 1.35.0
reported in
https://wordpress.org/support/topic/expired-jobs-not-showing-permalink-url/
3872837-zen
Contributor guide
Research direction
Reproduce the issue with the `[jobs post_status="expired"]` shortcode and the stated pretty permalink structure, then trace the job-listing permalink generation and compare it with published listings. Done means expired job links retain the site's specified permalink format instead of falling back to a plain query URL.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100