Use copy number insteead of appending (Copy) to each duplicate
Open
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 53
- Forks
- 38
- Avg merge
- 4d 8h
- Merged PRs (30d)
- 1
Description
Is your feature request related to a problem? Please describe.
When copying a post multiple times, the string (Copy) is appended to the post title. I'd like to propose two improvements:
- When copying a copy, the string (Copy) is appended again, leading to a series of (Copy)(Copy)(Copy) in the post title. Screenshot:
- When copying again the original post, the string (Copy) is appended just once even if there's already a post with title {post title} (Copy). This makes difficult to immediately distinguish which post is which in the posts list. Screenshot:
Describe the solution you'd like
Maybe consider to use a string with the copy number e.g.: (Copy 1) and then (Copy 2) etc. instead of multiple (Copy) (Copy)
Why do you think this feature is something we should consider for the Yoast SEO plugins?
For better usability
Additional context
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing repeated copies of a WordPress post in the duplicate-post plugin and trace the entry point that generates the copied title. Done means copied titles use distinct numbered suffixes such as (Copy 1) and (Copy 2), without accumulating repeated (Copy) strings.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php, wordpress
- Domain
- content
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100