Support » Fixing WordPress » Duplicate installation in other folder

  • Resolved janvanhoef

    (@janvanhoef)


    I’ve recently made the jump and started a weblog using wordpress. I am rather impressed by the possibilities and I really “get” theme development so far.

    However, after spending some initial work on my theme I decided it was good enough for the general public and used it on my wordpress installation. However, now that I have people visiting my website, I still want to experiment and edit this theme, but I don’t want visitors to see me experimenting.

    Is it possible to have a duplicate copy of the wordpress files in another directory, but using another theme? I suspect not, because the theme selected most probably is stored in the database.

    Or maybe there is a better way to develop your theme and see it in action, without using it on your “production” website? Suggestions are welcome.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Your theme and its related files are in the wp-content/themes/yourthemename folder.

    It’s very easy to put multiple copies of wordpress in action and a good source of information is the Codex article Installing_Multiple_Blogs.

    Thread Starter janvanhoef

    (@janvanhoef)

    Thanks for the quick reply.
    However, I think I’ve found another way to get what I want, and I think it’s a bit easier.

    I’ve found some information about theme switcher plugins.

    I thought about implementing a check so that only a specific user that’s logged in (me) can view this plugin and use it. It would be able to select another theme (the one in development) and view it with the current content.

    Now all I need is a way to distinguish the user that’s logged in.

    I ‘ve tried messing around with some php in the sidebar but i’m unable to see if i’m logged in (I based my code on the kubrick theme for comments)

    both don’t work :

    <?php echo $user_identity; ?>
    doesn’t return a thing

    and

    <?php if ( $user_ID ) : ?>
    Logged in
    <?php else : ?>
    Not logged in
    <?php endif; ?>

    always says I’m not logged in, but I am.

    Any help?

    Aren’t you over-complicating it? (a bit?)
    There is a plugin called Preview Theme (or Theme Preview?) – check out in the Plugins section of the Codex.

    FYI: most people have a local install on XAMPP and develop themes there.

    Thread Starter janvanhoef

    (@janvanhoef)

    Again, thank you for such a quick reply. It’s a joy to see so many people support wordpress.

    Maybe I should look into installing something to facilitate my theme editing, any suggestions? I haven’t been following development of those one-package-installs-all things.

    However in the mean time I will check out that plugin moshu.

    (note : I did search the codex and other resources before starting a thread here.)

    The XAMPP I referred to earlier is here:
    http://www.apachefriends.org/en/index.html
    You get Apache, PHP, MySQL installed easily at once, and having a local install of WP you can play with themes and everything.

    Thread Starter janvanhoef

    (@janvanhoef)

    I’ll look into that. In the meantime I installed the preview theme plugin and it works like a charm.

    However, I see that this isn’t 100% tamper-proof as there aren’t any user level checks. But you’d have to guess the name of the themes I have installed. I wonder if this plugin isn’t open for sql injection or other nasty tricks?

    All my questions are answered and I’ll leave you all with a link to my blog. You may allready have noticed I’m not a native English speaker, so don’t get scared by the Dutch. Any comments on the theme are welcome.

    In case you are wondering: my girlfriend is pregnant and the website is to inform friends and family on the “work in progress”.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Duplicate installation in other folder’ is closed to new replies.