Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have a problem in following situation:

I have 2 separate Wordpress 3.3.1 instances, main at domain.com and one of them (which consists of simple Q&A type site) is available from subdomain forum.domain.com. Now I have to merge them into one instance - to be able to share plugins, theme and posts (<-- that's important).

At this moment, forum.domain.com points to that second instance. I can quite easily get rid of it just by creating post categories for questions and displaying them accordingly. But then, my questions will have links like domain.com/category/forum/question-subcategory/question and I want them to be like forum.domain.com/question-subcategory/question. I've seen that there is a WP Subdomains plug-in that does exactly that but it's not compatible with WP 3.3.1. I thought that should be possible with .htaccess rules but this post seems to explain that it's not.

I considered using WP Multi-site feature but as far as I know, separate sites have separate tables in DB, thus they can't share posts (which is needed, as previously said).

Does anybody have any clue how to fix this problem ?

share|improve this question
Can't vote up but really interested in replies to this! - Thanks –  user15070 Apr 11 '12 at 10:10
Sites in a multisite instance can interact with eachother. Refer to these functions: get_current_blog_id(), switch_to_blog() and restore_current_blog() –  Tom J Nowell Apr 11 '12 at 10:49

1 Answer 1

Well, thanks for hints but finally, I had to abandon the idea of subdomain due to lack of working solution for this. I made separate categories for questions and used some hooks to display&operate on them properly. Thanks to the Custom Permalinks plugin, I now have domain.com (main blog) and domain.com/forum/ (Q&A), and the latter seems to be different site - with different headers, sidebars, logic, etc. from user's point of view (it's all on one instance, of course).

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.