[wp-hackers] Multisite w/ Subdomain issues
Ryan Bilesky
rbilesky at gmail.com
Thu Oct 21 02:19:41 UTC 2010
This has caused 1 minor problem. Posts work fine, pages don't it appears
thats because my site is setup with verbose page rewrite rules, so I just
need to modify the page rewrite rules to match that of the main site.
On Wed, Oct 20, 2010 at 6:33 PM, Ryan Bilesky <rbilesky at gmail.com> wrote:
> Actually I can do one better, there is a generic sql filter called query
> using that I am replacing wp_3_table with wp_table for posts, postmeta,
> comments, commentmeta.
>
>
> On Wed, Oct 20, 2010 at 6:12 PM, Ryan Bilesky <rbilesky at gmail.com> wrote:
>
>> I did find a filter posts_request, which affects the query to get a post,
>> then I just str_replace() the sql to replace wp_(blog id)_posts with
>> wp_(posts). Works perfect but it only affects the query used when viewing a
>> single post. If I can find other filters like this that deal with getting
>> the posts I might be able to make this work without switch_to_blog.
>>
>>
>> On Wed, Oct 20, 2010 at 12:29 PM, Ryan Bilesky <rbilesky at gmail.com>wrote:
>>
>>> I do have a plugin on my main blog that is supposed to detect mobile
>>> user-agents or the use of the m.mysite.com domain and switch to a mobile
>>> theme. I'm just not sure how I can make m.mysite.com access mysite.comwithout redircting it, thus loosing the m subdomain that would kick in the
>>> mobile theme.
>>>
>>>
>>> On Wed, Oct 20, 2010 at 4:25 AM, Peter Westwood <
>>> peter.westwood at ftwr.co.uk> wrote:
>>>
>>>>
>>>> On 20 Oct 2010, at 11:56, Alex Hempton-Smith wrote:
>>>>
>>>> > I've tried this before and it's difficult with multi-site set up.
>>>> >
>>>> > I guess the question is, how do we 'jump in' before WordPress serves
>>>> up the
>>>> > registration page at m.example.com and instead serve up example.comwith a
>>>> > different theme?
>>>> >
>>>> > Because, once we set up subdomain wildcards, WP is running the show
>>>> then?
>>>> >
>>>> >
>>>>
>>>> I guess the answer would be to put some code in sunrise.php to make WP
>>>> believe that the current blog is the one you want it to in this case and
>>>> make it use the right theme
>>>>
>>>> Cheers
>>>> --
>>>> Peter Westwood
>>>> http://blog.ftwr.co.uk | http://westi.wordpress.com
>>>> C53C F8FC 8796 8508 88D6 C950 54F4 5DCD A834 01C5
>>>>
>>>> _______________________________________________
>>>> 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