Support » Themes and Templates » Two Themes One Database?

  • I’m trying to create a new theme for my site. I have setup a beta site for theme testing. I would like the beta site to use the same content (posts, users, etc.) that the current site has.

    Is it possible to use a different theme and work off the same database? If so, could somebody point me in the right direction on how to do this?

    Thanks in advance.

Viewing 7 replies - 1 through 7 (of 7 total)
  • No, because all the settings – inclucind the active theme – are stored in the DB.

    Is there a way to import posts into another database?

    Maybe you could import them with an RSS feed?

    Near the bottom of wp-settings.php you have a line for
    define('TEMPLATEPATH', get_template_directory());

    You might achieve something like what you want by replacing the above with:
    define('TEMPLATEPATH', ABSPATH . "wp-content/themes/yourthemefolder/");
    else define('TEMPLATEPATH', get_template_directory());

    Then, to see your special theme, you add ?themechange=1 (or &themechange=1) to the URI of your WordPress to activate the theme found in “yourthemefolder” that you specify in the above code.

    And moshu, being a higher-up, can you tell me how I can communicate with someone about a security issue in WP?

    Not moshu, but…
    security at wordpress dot org

    Thanks, I tried there and no thing is happening.

    Be patient 🙂
    (I am no dev, not related to the devs… just a forum member)

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Two Themes One Database?’ is closed to new replies.