Skip to content

Option to only adjust post_modify date when scheduling blog posts updates #403

Open

Description

@qcybb

When using the "Rewrite & Republish" feature on blog posts, if I schedule an update, it changes the
post_date and bring that post to the top of the post feed.

Instead, I would like is an option to mimic the default WordPress behavior, and only modify the post_modified and post_modified_gmt dates when the blog post is updated (when using the scheduling feature).

Activity

  1. faisalahammad commented on Sep 17, 2026

    @faisalahammad

    I looked into this and opened a PR with a fix: #549.

    The scheduled copy-back in Post_Republisher::republish_post_elements() passes the copy's full post object, including its future post_date, to wp_update_post(), so the original always adopts the scheduled date.

    PR #549 adds a new option (off by default) called "Preserve the original publication date" on the Settings > Duplicate Post page, What to copy tab. When enabled, the date fields are left out of the post array for scheduled republishing, so WordPress keeps the original publish date and only refreshes the modified date, the same as a normal post update. Immediate republishing is not affected. I added unit and integration tests for both states of the option, and confirmed the behavior with a manual test build.

    Happy to adjust the wording of the setting or its placement if maintainers prefer a different approach. Feedback welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions