[wp-hackers] Multisite w/ Subdomain issues

Ryan Bilesky rbilesky at gmail.com
Wed Oct 20 06:56:03 UTC 2010


That plugin doesn't quite do what I need.  As far as the way to share the
contents across blogs, aren't we supposed to not use switch_to_blog because
of performance reasons or has that been fixed.


On Tue, Oct 19, 2010 at 10:54 PM, Martin Widmann <
Martin.Widmann at medienhaus.com> wrote:

> While sharing contents across multiple blogs on the same site is pretty
> easy - just hook into pre_get_posts, switch_to_blog( $content_blog_id ) and
> in the the_posts filter, restore_current_blog() - it's not so easy in other
> situations..
>
> Why don't you just use the WordPress MU Domain Mapping Plugin?
> http://wordpress.org/extend/plugins/wordpress-mu-domain-mapping/ Should do
> exactly what you need.
>
> BR
> Martin
>
> On Oct 20, 2010, at 1:58 , Ryan Bilesky wrote:
>
> > I'm thinking the most elegant way to deal with this might be to setup a
> > site for m.mysite.com in multisite and use either the mobile theme's
> > function.php or a plugin to have it pull posts and comments, ect from
> > wp_table rather than wp_#_table.  Is there by chance a generic sql filter
> > that will afford me the ability to filter an sql query before its
> executed?
> > If not what are my options to have a blog pull posts and stuff from
> another
> > blogs table in multisite.
> >
> > On Tue, Oct 19, 2010 at 4:35 PM, Ryan Bilesky <rbilesky at gmail.com>
> wrote:
> >
> >> I am looking to have 2 WP powered sites.  mysite.com (as a CMS) and
> >> blog.mysite.com (as a blog, obviously).  Now I opted to setup multisite
> >> since thats the easy way to do this.  However I have a small issue.
>  Instead
> >> of a wildcard subdomain entry I just created a dns entry for
> >> blog.mysite.com, but I also have pointed m.mysite,com to mysite as well
> to
> >> display a mobile version of mysite.  Since m.mysite.com isn;t setup as
> a
> >> seperate blog it shows the registeration page.  Is anyone aware of a way
> >> wherew I can have wordpress treat m.mysite.com like mysite.com.  Then I
> >> have a plugin that will detect the m.mysite.com url and override the
> theme
> >> with a mobile theme.
> >>
> >> If this is not possible if I specifically create a site m.mysite.comcan I
> >> have it pull the contents from the tables for mysite.com with a plugin
> or
> >> something.
> >>
> > _______________________________________________
> > wp-hackers mailing list
> > wp-hackers at lists.automattic.com
> > http://lists.automattic.com/mailman/listinfo/wp-hackers
>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>


More information about the wp-hackers mailing list