Yoast / Yoast/duplicate-post

Feature request

Open
#60 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

Hi,

I want to achieve this:

Suffix
– set some formula like this: “-yyyymmday-HHMM”
– in the suffix field of the plugin
– so that when I click under “some-page” on “Clone”
– the resulting cloned page name is “some-page-yyyymmday-HHMM”

Prefix
– set some formula like this: “yyyymmday-HHMM-”
– in the prefix field of the plugin
– so that when I click under “some-page” on “Clone”
– the resulting cloned page name is “-yyyymmday-HHMM-some-page”

For example, this can be done in WordPress in other settings and plugins.

As a matter of fact, in the WordPress menu in “Settings, Permalinks, Custom” we can set “%year%” or “%monthnum%” or “%hour%” or “%minute% and so on.

So, I was wondering if this could also be accomplished in Yoast Duplicate Post.

Is it possible?

Note:
I first asked for help here:
https://wordpress.org/support/topic/timestamp-suffix-or-prefix/
But then got an advice to post in here

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 locating the plugin's prefix and suffix settings and the Clone flow described in the issue. Check how WordPress date placeholders are represented, then verify that configured timestamp formulas produce the requested names for both prefix and suffix cases.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, wordpress
Domain
web-dev
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.