[wp-hackers] Sharing widgets across multiple blogs

scribu scribu at gmail.com
Sun Jul 11 17:00:08 UTC 2010


On Sun, Jul 11, 2010 at 7:56 PM, David Morris <dvmorris at gmail.com> wrote:

> Is there a way to share sidebar widgets across multiple blogs in WordPress
> 3.0?
>

Just do this:

switch_to_blog(X); // X is the id of the master blog
// display sidebar
restore_current_blog();


-- 
http://scribu.net


More information about the wp-hackers mailing list