1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Sharing a Database and Displaying Two Themes

Discussion in 'Blogging' started by showbizvet, Mar 11, 2010.

  1. showbizvet

    showbizvet Power Member

    Joined:
    Oct 1, 2008
    Messages:
    795
    Likes Received:
    260
    Occupation:
    IM
    Location:
    Tennessee and around
    Have a WP question could use some help on please.

    For my main client we are split testing the look of the site. Our index.php contains code that sends users to either index1 or index2, that works fine. Each of those pages link to pages that contain either the new or old look.

    example > index1.php links to contactn.php
    index2.php links to contact.php
    etc.

    thus whichever look is displayed to a user, they keep that same look as they browse the site.

    Now here is the problem. I'd like to have two different themes display for wordpress. What I did was to install a second instance of WP, then alter the wp-config.php to pull from the existing DB (I DO want all the data to be the same), thinking that if this worked I'd simply change the theme and alter my links and I'd be done.

    Problem is, even when I physically navigate to the NEW blog... it redirects to the old blog so something in the DB say... go to the existing blog. What I need to find out is how to..

    Pull data from the existing blog/DB.. but have it display on the new blog (same exact data) where I will use a different theme to match new look.

    Any help appreciated and happy to paypal a bit if any time is involved.
     
  2. simplybebop

    simplybebop Regular Member

    Joined:
    Oct 24, 2008
    Messages:
    371
    Likes Received:
    177
    Location:
    Greesnboro, NC
    Backup your theme with the option inside of wordpress. That will backup all of the content and linking structure.

    Then install it somewhere else on your server

    yoursite.com & yoursite.com/home for example
    multivariant test away!!
     
  3. twitch

    twitch Newbie

    Joined:
    Dec 8, 2009
    Messages:
    14
    Likes Received:
    1
    edit the homepage url in your database to your new url I believe it shows up 2 times
     
  4. showbizvet

    showbizvet Power Member

    Joined:
    Oct 1, 2008
    Messages:
    795
    Likes Received:
    260
    Occupation:
    IM
    Location:
    Tennessee and around
    That's what I initially thought, but wouldn't that then send the OLD blog to the new location?
     
  5. showbizvet

    showbizvet Power Member

    Joined:
    Oct 1, 2008
    Messages:
    795
    Likes Received:
    260
    Occupation:
    IM
    Location:
    Tennessee and around
    Will give that a try and let you know.
     
  6. MonoPuff

    MonoPuff Junior Member

    Joined:
    Apr 29, 2009
    Messages:
    184
    Likes Received:
    116
    There's a plugin that lets you have a different theme for admins or whatever user level you want to set.. Works well

    Code:
    http://www.prelovac.com/vladimir/wordpress-plugins/theme-test-drive
     
  7. showbizvet

    showbizvet Power Member

    Joined:
    Oct 1, 2008
    Messages:
    795
    Likes Received:
    260
    Occupation:
    IM
    Location:
    Tennessee and around
    thanks.. neat plugin.. won't work for what I need, but good to know about.

    I simply need blog1 and blog2 to run off the same database (same info exactly) but I want a different theme on blog2 so it matches our test. So far nothing has worked, but thanks for the efforts guys.