Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using Distributor and the Rewrite & Republish function of Duplicate Post plugin #1298

Open
1 task done
mrrrlou opened this issue Feb 11, 2025 · 1 comment
Open
1 task done

Comments

@mrrrlou
Copy link

mrrrlou commented Feb 11, 2025

Is your enhancement related to a problem? Please describe.

Using Distributor and the Rewrite & Republish function of Duplicate Post plugin
Using Distributor in combination with the Rewrite & Republish function of Duplicate Post plugin seems to be an issue.
This is because the R & R function creates a (temporary) draft version, which causes the distributed content to no longer work as expected.

The following is what happens:

  • The original content exists on site A. This content has (for example) ID 01. This content is distributed to site B (and it has been published).
  • We then rewrite the content on site A => this will create a draft post with ID 02 (on site A)
  • The content on site B gets connected to the draft with ID 02 of site A
  • The draft (ID 02) on site A is then published. This will merge it into content with ID 01. Draft post with ID 02 will be deleted.
  • However, on site B, the content on this site will be converted from ‘published’ to ‘draft’ status. It will still be connected to the draft with ID 02 on site A (which no longer exists).
  • On site A, when you check if it has distributed content, you’ll still see that it’s still connected to the content on Site B. However, when you click on the link it will throw a 404.
  • On site B, if you either edit or publish that distributed content and then navigate away from that content, it will disappear completely! It’s not even in the trash, it just seems to have been deleted.

Our client's work-around for now (which is tedious when you have multiple sites):

  • Again, the original content exists on site A. This has been distributed to sites B, C and D.
  • Go to distributed content on sites B, C and D => manually select ‘Unlink from Original’
  • On site A, 'Rewrite & Republish' content and publish (either planned or direct)
  • Go to sites B, C and D, to the previously unlinked content and link it again to original content

Request:

Designs

No response

Describe alternatives you've considered

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@jeffpaul
Copy link
Member

@mrrrlou my initial assumption is that the R&R plugin is copying the Distributor meta where it stores the mapping from origin to remote posts, so you might also want to look into how the Yoast R&R plugin could be extended to specifically NOT copy that metadata when creating a duplicate post.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants