[wp-hackers] Cloning content from Master site into new sites on a WP Network

Bill Dennen dennen at gmail.com
Wed Jul 11 20:28:20 UTC 2012


On Wed, Jul 11, 2012 at 4:24 PM, Jesse Friedman
<highfive at jesserfriedman.com> wrote:
> One last question can you add custom post types to a new post in this
> fashion IF those custom post types are defined by a plugin?
>
> Since it's a new site and the switch_to_blog() function ignores plugins
> will it return an error?

You might switch_to_blog and then register the post types and
taxonomies and then add the posts. This may not be best practice, but
it has worked for me.


More information about the wp-hackers mailing list