Yoast / Yoast/duplicate-post

Allow republishing/replacing of existing posts

Open
#169 1 comment 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

We have this recurring scenario where editors will clone or add a new post/page…etc instead of using the Rewrite & Republish feature. They then request for the new/cloned item to replace an existing/old one.

I’ve solved this internally by creating a plugin utilising the Yoast Duplicate Post functionality. However, it would be great if this functionality shipped with the official plugin.

You can see a demo of my solution here: https://www.youtube.com/watch?v=P3etzPURQ3o

My solution adds a metabox where editors can select the post they want to replace. On post save it adds all the necessary _dp_* metadata to both the current and target posts. At this point, the Yoast Duplicate Post takes over and handles it like a regular Rewrite & Republish item I’ve just added an extra metabox to give a more visual representation of what’s happening and an option to cancel the process (this just removes the metadata added in the previous step).

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 reviewing the existing Rewrite & Republish flow and the proposed replacement metabox and post-save behavior described in the issue. Compare the demo and the existing Yoast Duplicate Post handling, then define completion as allowing an editor to select an existing post, replace it through the normal flow, and cancel the process cleanly.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
content
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.