Hi,
you can use the template tag described here:
https://wordpress.org/plugins/duplicate-post/other_notes/
Basically you’d just add duplicate_post_clone_post_link() in your loop and it should work.
Hope this helps!
Thread Starter
oli870
(@oli870)
Awesome! That worked great, thanks! Just one more thing:
Is there any possible way to publish the new duplicated post straight away, and redirect to the post on the front-end after duplication?
Thanks! I will be sure to leave a donation this afternoon. This plugin has helped massively with my new project at work 🙂
Hi,
it’s a feature that’s been requested but it’s not available at the moment.
I hope to include it in the next version…
Thank you for your support and appreciation!
Thread Starter
oli870
(@oli870)
Sussed it!
Just had to change ‘draft’ to ‘publish’ in duplicate-post-admin.php and edit this line for the redirect: wp_redirect( add_query_arg( array( ‘cloned’ => 1, ‘ids’ => $post->ID), home_url( ‘post.php?action=edit&post=’ . $new_id ) ) );
Hi,
that’s exactly what I will do, but I will have to add options for that and check for compliance with capabilities…
Glad you it’s okay for your case, in the meantime!
Feel free to write for any other issue or question!
Hello, I would like my users to be able to duplicate events in the submission form from the eventscalendar http://elternbildung-aargau.ch/events/community/add.
I understand, it should be possible with duplicate post, I understand, I have to put duplicate_post_clone_post_link() in my loop but: what exactly is it, what I have to do? I speak german and my english finishes at this point.
What is a loop an where is my loop?
I would be very glad to get a manual, showing me the way.