Yoast / Yoast/duplicate-post

Use copy number insteead of appending (Copy) to each duplicate

Open
#331 0 comments 0 reactions 0 assignees View on GitHub

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:

Screenshot 2023-10-30 at 10 50 43

  • 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:

Screenshot 2023-10-30 at 10 57 28

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.