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.

How do you run two Wordpress blogs with different themes using one database where the content remains the same in both sites? The issue that I am getting is at the Domain mapping in both blogs.

share|improve this question
    
If you have multisite installed as per your question tag? then this should work just like what your asking. If multisite is not working can you be clearer on the issue and provide an example? –  Shawn Jan 9 at 20:44
add comment

3 Answers

Not sure if it will be enough but this two plugins should give you most of what you want Any hostname - change the content urls to reflect the domain in which the content was requested Domain Theme - change the them according to the domain name.

I haven't tested any of them but it looks like even if they don't work you can get useful pieces of code from them.

share|improve this answer
add comment

If you have two separate WordPress installations (one per domain), you can define WP_SITEURL and WP_HOME in wp-config.php to force a specific address/hostname. Add this code to each wp-config.php:

define('WP_HOME','http://example.com');
define('WP_SITEURL','http://example.com');

And change example.com to the name of the domain in question.

share|improve this answer
add comment

I couldn't find an answer to this online, so I wrote one up:

http://www.tombellnj.com/blog/two-blogs-one-backend/

share|improve this answer
1  
Link only answers are discouraged. If something happens to that link the answer becomes useless. Please try to make your answer here stand alone. –  s_ha_dum Jul 18 '13 at 4:28
add comment

Your Answer

 
discard

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.