[wp-hackers] Sharing widgets across multiple blogs
David Morris
dvmorris at gmail.com
Mon Jul 12 01:17:51 UTC 2010
Ah, I assume that would go in the theme code. That makes sense.
Is there an easy way to show that a particular blog's widgets are shared,
and that the widgets in the admin interface would not actually be used?
Thanks so much for your help,
Dave
On Sun, Jul 11, 2010 at 12:00 PM, scribu <scribu at gmail.com> wrote:
> 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
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
--
Dave Morris
http://dave.showviz.net/
http://3dcamphouston.com/
More information about the wp-hackers
mailing list