MagicStick
Forum Replies Created
-
Forum: Plugins
In reply to: [Multisite Post Duplicator] Duplicating imagesThat sounds to me like your ISP is set up not to allow file_get_contents() and file_put_contents(). Something that seems to pop up once in a while in the forums!
HOWEVER! I’m going to be releasing version 1.7 tonight that has a completely new method of copying media from one site to the other. I’m hoping this version will get round this problem for our users 🙂
If you wanna get your hands on it NOW.. Its here: https://github.com/magicstickuk/multisite-post-duplicator/tree/v1.7
Forum: Plugins
In reply to: [Multisite Post Duplicator] Copy Media files?Just finished functionality on this. Will be posting this to WordPress tomorrow ( V1.7 🙂 ) but if you want to get your hands on this now you can get it here:
https://github.com/magicstickuk/multisite-post-duplicator/tree/v1.7
Forum: Plugins
In reply to: [Multisite Post Duplicator] Is doubling the posts when the post is previewedI can’t replicate the issue on my end mate. If you provide detailed step by step instructions on how to replicate I will look into it for ya.
Forum: Plugins
In reply to: [Multisite Post Duplicator] Serious bugNothing to do with that I’m afraid Henry. The ID field on the wp_post table is an auto increment field so adding a post will ALWAYS create an new ID on the destination site. You say in your original post that you are have mirrored the ID for each site? How on earth are you managing this and why? Just looking for a clue on your bug 🙂
Forum: Plugins
In reply to: [Multisite Post Duplicator] Subdomains and article categoryYeah public git is available. Just go into github and search for Multisite post Duplicator.
Can’t think of any machanism that would cause a theme setup to reset. Sounds doubious to me! Please ensure that your categories are properly registered across all sites on your Multisite network.
More that happy for you to have a look and report back with any findings! Thanks!
Forum: Plugins
In reply to: [Multisite Post Duplicator] Media within clone fields don’t copyAh. That’s interesting actually. Will look at adding functionality to deal with clone fields! Thanks for the info mate!
Also. Can you update the title to include ACF CLONE FIELD? Just to avoid confusion 🙂
- This reply was modified 8 years, 9 months ago by MagicStick.
Forum: Plugins
In reply to: [Multisite Post Duplicator] ACF Image and Post Attachments not copying acrossThis was sorted in 1.6.5 matey. Sorry. If there are still issues then I suspect it may be that your acf fields are not synced properly between sub sites. Either that or your ISP is not setup to accept file_get_contents() or put_file_contents
Forum: Plugins
In reply to: [Multisite Post Duplicator] Automatic duplication functionality?Ah! Hold on. I created my own add on for this functionality. Basically adds ‘auto mode’. Simply edit the code to add the sites to auto add too (line 8)
https://github.com/magicstickuk/multisite-post-duplicator-auto-post/blob/master/auto.php
You could also just run the core MPD function within Postie like Wayne has indicated
/** * * This is the main core function on Multisite Post Duplicator that processes the duplication of a post on a network from one * site to another * * @param int $post_id_to_copy The ID of the source post to copy * @param int $new_blog_id The ID of the destination blog to copy to. * @param string $post_type The destination post type. * @param int $post_author The ID of the requested post author from the destination site. * @param string $prefix Optional prefix to be used on the destination post. * @param string $post_status The post status for the destination ID. Has to be one of the values returned from the mpd_get_post_statuses() function * * @return array An array containing information about the newly created post * * Example: * * id => 20, * edit_url => 'http://[...]/site1/wp-admin/post.php?post=20&action=edit', * site_name => 'Another Site' * */ mpd_duplicate_over_multisite($post_id_to_copy, $new_blog_id, $post_type, $post_author, $prefix, $post_status)Forum: Plugins
In reply to: [Multisite Post Duplicator] Serious bugI’ll look into this Henry. Thanks. I, for the life of me, can’t think of any mechanism in the plugin that would cause this to happy. Source IDs are not passed to the destination at all. I’ll investigate but any further info you can provide would really help. Did the posts have MPD links attached to them for example?
Forum: Plugins
In reply to: [Multisite Post Duplicator] Automatic duplication functionality?Hi Dave. On the post there is a ‘create duplication link’ checkbox when you do a Multisite duplication. This will then automatically keep the two posts in sync when updating the source post in the future.
Enjoy! 😉
Forum: Plugins
In reply to: [Multisite Post Duplicator] Is doubling the posts when the post is previewedThanks for the heads up mate. I’ll look into this. In the meantime you don’t have to have the duplication box checked when previewing. 🙂
Forum: Plugins
In reply to: [Multisite Post Duplicator] Copy Media files?No schedule. Will get round to it as soon as I can.
Forum: Plugins
In reply to: [Multisite Post Duplicator] Update post status on linked posts?My bad. This should work:
function mpd_trash_linked_posts($post_id){ if (function_exists('mpd_get_persists_for_post')) { $linked = mpd_get_persists_for_post(get_current_blog_id(), $post_id); foreach ($linked as $linked_post) { switch_to_blog($linked_post->destination_id); wp_trash_post( $linked_post->destination_post_id ); restore_current_blog(); } } } add_action('trash_post', 'mpd_trash_linked_posts');Forum: Plugins
In reply to: [Multisite Post Duplicator] Posting multiple copies of duplicatesThis issue has now been addressed in v1.6.6. 🙂
Forum: Plugins
In reply to: [Multisite Post Duplicator] Media library : images duplicatedHey guys. v1.6.6 just released solves the duplicating media issue.
Not for existing posts you might have to run the post copy one more time for the media duplication to be logged. But for new posts you’ll be all good going forward,