MagicStick
Forum Replies Created
-
Forum: Plugins
In reply to: [Multisite Post Duplicator] Custom field value and taxonomiesThanks for your message Kushal. This is 100% going to be in a future version of the plugin. I regard it as the main reason for me not giving this plugin a 1. Version number. Doesn’t feel complete without it. Rest assured i’ll be updating asap.
Forum: Plugins
In reply to: [Multisite Post Duplicator] Behaviour if post already exists in target site?Hi Paul. Yeah. The plugin will create a brand new post. The ‘approval process’ activity you are describing above is already available within other plugins… https://wordpress.org/plugins/oasis-workflow/ for example. 🙂
Forum: Plugins
In reply to: [Multisite Post Duplicator] Small requestHi Tiduspt. I’ve just pushed out an update v0.7.4 just for you! :-). I now run all get_post_status() functions through the filter ‘mpd_available_post_statuses’. This will give you the access/control you need. Please note that this filter isn’t specific to the post/page metabox as I felt it appropriate to offer the filter wherever other users may require too; so you might want to wrap your hook in some current_screen logic to control where you want the filter to run.
Like so:
add_filter( 'mpd_available_post_statuses', 'filter_the_statuses'); function filter_the_statuses($available_statuses){ $currentScreen = get_current_screen(); if($currentScreen->post_type === 'page'){ unset($available_statuses['publish']); } return $available_statuses; }Forum: Plugins
In reply to: [Multisite Post Duplicator] Copying attachmentsTry checking your permissions on the destination upload directory. Plus check if you are ringing a subdomian network. This is not supported.
Forum: Plugins
In reply to: [Multisite Post Duplicator] Small requestSounds perfectly reasonable to me. I’ll get that added and push a wee update out asap.
Forum: Plugins
In reply to: [Multisite Post Duplicator] Small requestHi Tiduspt. I was actually having a poke about my code tonight and released I already did a filter you can use for this. It actually holds a lot of information for you to do pretty much anything with.
Tag: “mpd_setup_destination_data”
$arg1 : Is an array which holds the main information for the destination post:[‘post_title’]
[‘post_status’]
[‘post_type’]
[‘post_author’]
[‘post_content’]
[‘post_excerpt’]
[‘post_content_filtered’]$arg2: The is the original data which is passed into the core function for from the source post for duplication:
‘source_id’
‘destination_id’
‘post_type’
‘post_author’
‘prefix’
‘requested_post_status’Usage Example:
add_filter('mpd_setup_destination_data', 'my_hooked_in_function', 10, 2); function my_hooked_in_function($arg1, $arg2){ $current_status = get_post_status( $arg2['source_id'] ); $arg1['post_status'] = $current_status; return $arg1; }See inc/core.php, function ‘mpd_duplicate_over_multisite’ for all the detail.
This is a tough one because it sounds like your theme has a lot of custom fields going on. And any custom fields that has been built outwith the normal WordPress way of doing things (using wp_posts and wp_postmeta database tables) then there will be issues. Unfortunately it would be impossible for me to cover every scenario for every heavily customised theme. I’ve built an API for the plugin so if you hire an experienced WP dev I’m sure they could hook into my plugin and grab everything required for your theme! 🙂
This has actually been on my mind. It’s almost an entirely different plugin in terms of functions required to be written. But yes. I’ll try and get this out asap.
Thanks for your input!
Forum: Plugins
In reply to: [Multisite Post Duplicator] Not Sure How To Duplicate in BulkAnd thanks for giving this free plugin a try. The plugin does copy tags categories however batch duplication doesn’t allow for author atributation. And published date is published date. I think you need some sort of site duplicator rather than individual page/post duplicator. Good luck. And all the best.
Forum: Plugins
In reply to: [Multisite Post Duplicator] Not Sure How To Duplicate in BulkDoing batch duplication will alway attribute the new page to the person duplicating. Tags and categories should have came across tho. Check the plugin settings page for your desired behaviour.
Regarding the status of the destination post. I’m going to be releasing functionality to better control this soon.
Forum: Plugins
In reply to: [Multisite Post Duplicator] Not Sure How To Duplicate in BulkPost/pages/custom post types. They are all duplicatable to other sites within a network in this plugin and all work in exactly the same way. 🙂
Forum: Plugins
In reply to: [Multisite Post Duplicator] Not Sure How To Duplicate in BulkOK. Lets start at point 2: I think you are misunderstanding what a multisite network is. In a multisite network once you install a plugin on the network root dashboard the plugins functionality it is automatically available in all sites within that network.
Pojnt 1: Go to https://wordpress.org/plugins/multisite-post-duplicator/screenshots/ and look at the image ‘batch processing’ this will give you an idea how it works.
Finally. Looking back on your original statement:
I need to duplicate all 365 Published Posts from one WPMS to another WPMS.
If by this you mean to want to copy pages from one multisite network to another multisite network rather than copy pages from one site within a network to another site within the same network then this plugin is not what you are looking for. Not sure how you would achieve this.
Hope this helps! 🙂
Forum: Plugins
In reply to: [Multisite Post Duplicator] Not Sure How To Duplicate in BulkYou can batch process the duplications on the page list as long as you have the required privalages in the other sites) However I would do the dups in batches of 50 or so because depending on your server setup the process might timeout.
‘Push to’ process if FAR more efficient way of doing things. In terms of the number of queries required just to serve up the basic options.
Thanks for the input! Good luck on your duplications!
Forum: Plugins
In reply to: [Multisite Post Duplicator] Small requestAh! Nice one. I’ll do that in a future release. But will also add an option to ‘inherit source post status’ on the settings page too. Thanks for the good idea.
Forum: Plugins
In reply to: [Multisite Post Duplicator] Fatal errorI’ve added an update which resolves this error and signposts the user to check their multisite installation.