Ello,
I have 3 multisites. I am looking to duplicate a custom post type from either site 1 or site 2, to site 3. Thus making site 3 have every post from either site.
I tried the code from your link, https://github.com/magicstickuk/multisite-post-duplicator-auto-post/blob/master/auto.php, but I get errors on saving a new post type:
Warning: mysqli_real_escape_string() expects parameter 2 to be string, array given in /wp-includes/wp-db.php on line 1102
Warning: Cannot modify header information - headers already sent by (output started at /wp-includes/wp-db.php:1102) in /wp-admin/post.php on line 198
Warning: Cannot modify header information - headers already sent by (output started at /wp-includes/wp-db.php:1102) in /wp-includes/pluggable.php on line 1216
Also, only the main site duplicates it (even with the error) but the other site does not.
Not sure what I’m doing wrong here!
-
This reply was modified 6 years, 10 months ago by rikkter.