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 twoo websites on worpdress platform:

On the server there are 2 different folders with same files, same config but one of them has:

define('WP_HOME',    'http://nuovafattoria.ro/');
define('WP_SITEURL', 'http://nuovafattoria.ro/');

so is the same database but different url.

I wanna made some changes on one of them, different logo, background so I need a second options table but the others to remain same for both websites.

How can I have different logo, background and settings on the second website?

share|improve this question
    
Why do you have this set up? What is it trying to achieve? –  Tom J Nowell Aug 19 at 10:37
    
Both sites will have the same content? If so this isn't neccesary –  Tomás Cot Aug 19 at 11:33

1 Answer 1

up vote 1 down vote accepted

I would look into using HyperDB instead. This would allow you to pull data from several databases while one is replicated as the "master" database.

http://wordpress.org/plugins/hyperdb/

From the description page of the plugin:

It supports:

  • Read and write servers (replication)
  • Configurable priority for reading and writing
  • Local and remote datacenters
  • Private and public networks - Different tables on different databases/hosts
  • Smart post-write master reads
  • Failover for downed host
  • Advanced statistics for profiling

Hope this helps you.

share|improve this answer

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.