WordPress.org

Ready to get started?Download WordPress

Forums

Two Themes One Database? (8 posts)

  1. shiner_man
    Member
    Posted 8 years ago #

    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.

  2. moshu
    Member
    Posted 8 years ago #

    No, because all the settings - inclucind the active theme - are stored in the DB.

  3. shiner_man
    Member
    Posted 8 years ago #

    Is there a way to import posts into another database?

  4. Samuel B
    moderator
    Posted 8 years ago #

    Maybe you could import them with an RSS feed?

    http://codex.wordpress.org/Importing_Content#Importing_from_an_RSS_feed

  5. geoffe
    Member
    Posted 8 years ago #

    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:
    if(isset($_GET['themechange']))
    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?

  6. Samuel B
    moderator
    Posted 8 years ago #

    Not moshu, but...
    security at wordpress dot org

  7. geoffe
    Member
    Posted 8 years ago #

    Thanks, I tried there and no thing is happening.

  8. moshu
    Member
    Posted 8 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.