Closed bobbingwide closed 3 years ago
I've prototyped some code that does the following.
$clone->reclone_these
after $clone->clone_these
$node->cloneme
, we call maybe_reprocess_node to see if the post may need recloning. So, for a new oik-plugins post we'd expect to see oik-plugins post to be recloned if the featured image ( child attachment ) was cloned.
I'm testing this new logic by cloning a load of plugin and blocks that I catalogued locally in November 2019 but did not, for one reason or another, clone to the live site.
Then I might have a play with herbmiller.me
I put this solution onto Susan's site a while ago. It's been working fine. It's now been delivered in oik-clone v2.0.0, so I'm closing it.
For some time now the process to create and clone new content which has a featured image has been as follows.
Step 4. clones the post and the child attachment but doesn't set the correct ID for the featured image. Step 7. resolves the issue because the logic finds the mapped ID for the featured image
Requirement
Simplify the process by reducing the number of manual steps necessary
Proposed solution
Update the clone logic to reperform the first clone if a child attachment is also cloned.