Similar to this recent issue, I no longer have the clone/duplicate option in the Admin Bar. Similarly, I’m not sure when it disappeared but it has been at least several months ago. I’ve ensured the settings are enabled for it to appear in the admin bar and deactivated/cleared cache/reactivated the plugin. Still no luck.
Here is an example. After publishing a post there used to be a copy or duplicate option in the admin bar at the top of the page. https://imgur.com/a/IMjaKrl
I am not sure if it was visible on the published post or not but I wanted to include a screenshot of that as well. https://imgur.com/a/ypapyzO
The plugin works everywhere else. I can go back to the list of All Posts and click to duplicate from there. It just seems to be missing in the Admin Bar area and it was more convenient to have it there when I needed it. Thanks for any suggestions!
]]>I’m currently using the plugin to clone a post that goes out ~monthly with similar structure/content. However even with the Copy post/page status
setting unchecked, the published
status from a prior month is copied to the cloned post and thus appears on the frontend of the site (and appears in any email subscriptions, RSS feeds, etc).
What is the best way to ensure when cloning that the published
status is NOT cloned and instead the cloned post has draft
status?
Our team has been using the Rewrite/Republish feature for awhile now with no issues, until recently.
We believe the issue started when we stopped using the default wp-cron.php file. We stopped using this because our normal scheduled posts were not getting published. So we set up a cron job on our server directly to run the wp cron events.
Initially the cron job was timing out, so our host suggested we add the parameter to skip plugins. Here is the cron job command we are currently using:
wp cron event run –due-now –skip-plugins –skip-themes
This has been working and our schedule posts are now getting published properly.
However, about the same time we made that change, the Rewrite/Republish feature started to create duplicate posts rather than merge and replace the original.
After some testing, I’ve found that if we click Rewrite/Republish, make changes and publish again right away, it works great. The posts merge and the original URL is retained.
But, when we click Rewrite/Republish, make changes and schedule the post to be published in a couple days, the revised post is published as scheduled, but a new post is created with a new URL and the old version remains on the website as well.
Are there a known bugs with the scheduled Rewrite/Republish posts duplicating rather than updating the original?
Does not using the default wp-cron.php file cause issues?
Would the fact that we’re using the –skip-plugins parameter possibly cause it to create new rather than update?
Any help on this would be greatly appreciated. We’re stuck manually publishing articles and/or going back and deleting posts and adding redirects.
]]>We constantly use and love the Rewrite and Republish feature as part of our republishing process. We are wanting to automate the creation of the R&R drafts using Make (formerly Integromat) or other automation software. We can find a way to clone or duplicate, but not create an R&R draft. Is there any way to do this? We are aware we could replace the functionality of the R&R using Make, but did not want to add complexity for a solution that already exists. Any help would be much appreciated.
]]>That’s odd, I always used this awesome and easy plugin on my projects, but I started one this week and I can’t activate this plugin anymore. When I activate I face critical error with this log:
Fatal error: Uncaught Error: Object of class WP_Post_Type could not be converted to string in /app/wp-content/plugins/duplicate-post/src/post-republisher.php:54 Stack trace: #0 /app/wp-content/plugins/duplicate-post/src/duplicate-post.php(77): Yoast\WP\Duplicate_Post\Post_Republisher->register_hooks() #1 /app/wp-content/plugins/duplicate-post/duplicate-post.php(71): Yoast\WP\Duplicate_Post\Duplicate_Post->__construct() #2 /app/wp-includes/class-wp-hook.php(324): __duplicate_post_main('') #3 /app/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #4 /app/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #5 /app/wp-settings.php(559): do_action('plugins_loaded') #6 /app/wp-config.php(86): require_once('/app/wp-setting...') #7 /app/wp-load.php(50): require_once('/app/wp-config....') #8 /app/wp-admin/admin.php(34): require_once('/app/wp-load.ph...') #9 /app/wp-admin/plugins.php(10): require_once('/app/wp-admin/a...') #10 {main} thrown in /app/wp-content/plugins/duplicate-post/src/post-republisher.php on line 54
It’s not the theme because it’s happening even if I change to a default theme. What am I doing wrong?
]]>Hello,
I have set up the title not to be duplicated. This means that the post ID is entered as a slug. However, I want the slug to be empty and only generated when saving.
How can I achieve this?
Thank you
]]>(I posted this in a previous thread, but it was already marked as resolved)
Hello!
I am trying to follow your instructions from this previous thread,. To my custom plugin I have added the following
/** * Filters out custom fields from being duplicated in addition to the defaults. * * @param array $meta_excludelist The default exclusion list, based on the “Do not copy these fields” setting, plus some other field names. * * @return array The custom fields to exclude. */function my_custom_fields_filter( $meta_excludelist ) { // Merges the defaults array with our own array of custom fields. return array_merge( $meta_excludelist, [ 'ig_es_is_post_notified', 'bluesky_shared' ] );}add_filter( 'duplicate_post_excludelist_filter', 'my_custom_fields_filter' );
However when I click “Rewrite & Republish” and the post opens for republishing in the custom fields section I still see this:
My understanding of your instructions was that these fields should not be duplicated because of the function you recommended.
I am confident that my custom plugin is active.
Can you tell me what I am doing wrong?
]]>Hi there,
we are using the Yoast Duplicate Post plugin Version 4.5, WooCommerce 9.4.3 and ACF Version 6.3.10.2.
When I duplicate a product with acf fields, the fields with simple text or number values are being copied fine. But the fields that use a taxonomy and product meta attributes, are missing in the new product.
Thanks for the support
]]>I’m looking into how to enable Rewrite & Republish for Woocommerce products and am stumped! How do you do it!?
]]>I have two questions about the revisions that result from rewriting and republishing.
Thank you for reading.
]]>Hello!
I have a WP site that sends daily emails using IceGram and another plugin that publishes on Bluesky. With both of these, there are custom fields that keep track of whether or not an email has been sent (ig_es_is_post_notified
) or a post made to Bluesky (bluesky_shared
).
If I want to repost the post at a future date, do I just list those fields in the “Do not copy these fields” field in the plugin settings? Or are custom fields not copied by default?
Thanks!
]]>Using Yoast Duplicate Post, if I create a Rewrite and Republish draft, and then have that draft Republished, the publish date of the original stays the same. The content is just replaced.
If I schedule out the Republish, the Publish date gets updated.
Is there a way to schedule out a Rewrite and Republish so that it Republishes it at a future date, while also keeping the original’s publish date intact?
Thanks,
I am currently using the Yoast Rewrite & Republish feature with the Divi Extra Theme. I was hoping to use the Rewrite & Republish feature to change the image on a page at a later date. When making the changes and selecting Schedule Rewrite & Republish, the edit is scheduled yet image changes still apply immediately.
Steps to recreate:
Any help would be much appreciated.
]]>When I rewrite and republish using ‘Yoast Duplicate Post’, will it not be added to the revision (a WordPress feature)?
Thank you for reading.
]]>Hi, i tried to use the ‘Rewrite and Republish’ function to duplicate a container in elementor.
I submit the page for review, the layout and fonts looks ok. When a person with publishing rights attempts to republished the content, the font size changes.
Pic 1: Editor view (Font is ok on preview)
Pic 2: After administrator republished the page
]]>I currently have 2 pages that share posts. I create posts on the first site and have custom field radio button I can check to automatically share the post on the second page. The issue I have is that if I clone a post, change the contents in the clone and share it on the second page, it overrides the original post I cloned on the second page instead of creating a new one.
For example is I create a post named “test” and share it to the second page, there will be a “test” post on both pages. If I then create a clone of “test” and rename it “test2” and share it with the second page, instead of there being a “test” and “test2” on the second page, the “test” post on the second page becomes “test2” and “test” in no longer present.
The permalink and post ID are not the same when I create the clone so what could be causing this issue? Is it a settings issue?
]]>How do I set Duplicate Post so that the iframe code in the box is not cloned when I want to clone a post?
]]>Sometimes when I use Duplicate Post to Rewrite and Republish it changes the URL adding “-2”. There is no longer the original URL and when I try to change the URL back to the original it automatically adds “-2” back. This is obviously not good for SEO but I can’t figure out how to fix the problem.
]]>When cloning pages using the hover clone feature, it creates two draft pages instead of one. Additionally, when trying to move pages to the trash using hover, it causes a site error and does not actually move the page to the trash.
The only current workaround is to use bulk actions, which work without error. Here’s a summary of the issues:
Any assistance with resolving these hover action issues would be appreciated!
]]>Hey there!
I’ve used this plugin for a while now but had recently taken a 6 month or so break from publishing. So this week was the first time I’ve tried to republish a post in a while, and I noticed the following:
Is there anything I can do to prevent from happening?
Other things of note: My site recieved a redesign/new theme within the 6 month break I that took, but not sure how this would impact the republishing plugin; nothing structurally changed with post types, categories, or tags with the new theme.
]]>Hello and good day.
I used the Rewrite and Republisher plugin and it published the new article, but it still the header on the published version.
I can not find the draft nor can I change the link to the post either.
I think it’s stuck somewhere.
I can see a total of 183 posts but 182 published and no drafts.
The two affected links are below:
https://reasonhosting.com/bakersfields-website-web-design-2/
]]>Hi there,
When I click on the “copy to a new draft” button, two drafts are created! We need to delete the extra one each time we use this plugin.
]]>I had a colleague run a detailed performance check of one of the several client sites that have this plugin installed, and he discovered something surprising: duplicate-post/vendor/composer/ClassLoader
was called thousands of times from the front end of the site, accounting for 8% of performance loss.
I would not expect the plugin to be called at all from the front end. Is there a reason for this? Is there a way to turn it off? (I notice that “admin bar” is one of the display options, though I don’t believe my colleague was logged in while testing.) And if not, could y’all stick a simple is_admin()
check in there to keep it from happening? The plugin is extremely useful, but that’s quite a penalty.
Thanks,
Sallie
Hi!
I have one post that does not display the Rewrite & Republish option. I already searched the forums and found the following helpful thread: https://www.ads-software.com/support/topic/rewrite-republish-option-missing-on-one-post/
I was able to delete the respective post with the status?dp-rewrite-republish
in the database post table. However, I cannot figure out how/where to delete the post meta?_dp_has_rewrite_republish_copy
?for that post ID. I hope someone can point me to how I get that done and hopefully get the rewrite and republish function back for this page. My theme is Hestia (free) in case that helps.
Thanks a log in advance!
]]>Hi,
After enabling the navigation menu under permissions I still can’t see any duplicate/clone menu setting. Am I missing something?
Thanks!
]]>Hi,
I duplicated one page including an ACF group field.
When I want to update the ACF File Field onto the cloned post and I am saving the post, the new value into this field is not registered… Why ?
I checked any restriction onto this field and there is nothing that could block the new value onto this field…
Thanks in advance
FX
Hi there, we are troubleshooting a duplicate malformed URL that was created during a rewrite and republish.
The post URL: https://www.gearpatrol.com/watches/rolex-explorer-ii-alternatives/
The malformed URL: https://www.gearpatrol.com/%section%/5-affordable-tool-watches-with-rolex-explorer-ii-vibes/
Both the correct and malformed post appear in query blocks, as seen in this test post. Access code 09-16-24-Test-Link
https://www.gearpatrol.com/?p=850670&preview=true
Do you have any insight?
]]>I duplicated a page to rewrite & republish it, but the duplicated page is gone.
Can you help me to find it back? Because when I open the original page it keeps saying that there is a duplicate page which will overwrite the content of the original page.
]]>Every time I try to create a duplicate post, it creates a draft but the draft is empty and I cannot delete the drafts. How can I create a duplicate of a page?
]]>Dear Yoast,
We are using your plugin along with Advanced Custom Fields PRO, and we’ve encountered an issue with your plugin in combination with the bidirectional relationship field. When we duplicate a post, the selected relationship is copied over, but on the other end, where the relationship is also established, the connection doesn’t seem to carry over. Is this something that could be resolved within your plugin?
]]>