• Resolved Bart

    (@urodii)


    Hi Support,

    The problem is that when cloning a page or a post to a post you are cloning, -2 (or -3 or -7) is added in the slug and the same number is also added to the cloned post, and -2 should only be added to the new cloned post or pages. The new slug is only visible in the backend. When you delete the duplicate page or post, the slug returns to normal. The problem is that you have to change the slug of the page you are cloning every time.

    Yoast Duplicate Post version = 4.1.2
    Wordpress version = 5.8.1

    Best regards.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Michael Tiña

    (@mikes41720)

    Hi @urodii

    Thanks for confirming you have the latest versions of WordPress 5.8.1 and Yoast Duplicate Post 4.1.2.

    Would it be possible for you to provide steps and further details on exactly what issue you currently have with the ‘clone’ feature in Yoast Duplicate Post?

    When you clone a post or page, depending on the settings in the Yoast Duplicate Post plugin (if you’ve ticked the option to copy the ‘slug’) then it will use the same slug in the cloned post, which becomes a draft. If you don’t make any changes to the slug, it is expected that it would have the -2 at the end of the URL, since WordPress doesn’t allow for any duplicates.

    We’re not quite sure we understand based on your description of the issue. Could you explain this part a bit further – When you delete the duplicate page or post, the slug returns to normal. The problem is that you have to change the slug of the page you are cloning every time.

    What do you mean by ‘the slug returns to normal’. If you could provide exact URLs of what is happening when you clone a post or page and what output you are expecting, this would be helpful.

    Thread Starter Bart

    (@urodii)

    Hi – @mikes41720,

    Thanks for the answer,
    So for example I have a page with permalink:
    ../cookie-policy/
    and I want to clone it, after cloning there is a new page (draft) created with permalink:
    ../cookie-policy-2/
    and it is fine but also to this main page which I cloned in the permalink is added -2 so permalink looks like this:
    ../cookie-policy-2/
    so after cloning page we have two pages with the same permalink. The permalink of this main page should remain unchanged and this -2 should only be added to the cloned page.

    Best regards.

    Plugin Support Michael Tiña

    (@mikes41720)

    Hi @urodii

    This looks to be unexpected behavior.

    We created a post with the permalink of /clone/ and then we cloned that post. The draft still had the same permalink of /clone/ and when we published that draft, it had the permalink of /clone-2/. The original post still had the same permalink of /clone/.

    You might have to perform a conflict check with a default WP theme and only the Yoast Duplicate Post plugin enabled and see if you get the expected behavior. Then enable your plugins, one by one, until you are able to identify the plugin or theme that might be causing this potential conflict in the changing of the permalink URLs – https://yoast.com/help/how-to-check-for-plugin-conflicts/

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Issue with cloning pages/posts etc’ is closed to new replies.