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.

Hi I will really appreciate your input. I just got a new template for wp. I want to start working on it without affecting the template already installed and running on the server.

what's the best way to work around it? someone told me to create a new directory and install wp in that directory, which i did but it shows a 404 page

Sincerely

Jim

share|improve this question

migrated from stackoverflow.com Mar 25 '11 at 12:11

This question came from our site for professional and enthusiast programmers.

5 Answers 5

I'd say you should install WAMP or MAMP and develop locally. Then only you can see the site in progress and you don't have to wait for files to upload to view changes. You're just saving locally.

share|improve this answer

I suggest you to use the Theme Switcher plugin. Enable only for the administrator.

share|improve this answer

The easiest way:
Just put the following as wrapper around your code to avoid people seeing what you do:

// Add Template comment here and assign your test template to a 'private' page.
/*
Template Name: TESTTEMPLATE
*/

// Here we start with the template part that only admins can see:
if ( current_use_can( 'administrator' ) 
{

// DO STUFF HERE

// after the following line everything is public again.
}
else
{

// ADDITIONAL: redirect to home
// http://codex.wordpress.org/Function_Reference/wp_redirect

wp_redirect( home_url() );
// could also be the last page
// $redirectURL = trim ($_SERVER['REQUEST_URI']);
// wp_redirect( $redirectULR );

exit;

}
share|improve this answer

i'm agree with curtismchale.. but if you are new to wordpress than

i suggest you to first install latest XAMPP via installer from here - installer

or WAMP from here - installer and work locally first..

install latest wordpress and extract it and put folder "wordpress" as directed below

1] for xampp you should put "wordpress" in "../xampp/htdocs" 2] for wamp you should put "wordpress" in "../wamp/www"

install wordpress(hope you know) put your tamplate in "wordpress/wp-content/themes" than go to admin and activate your theme from appearance->themes->your theme-> and activate it. and start working on it..

hope this will help you...

share|improve this answer
    
Hi yj18 i did the install but now is asking me if i have : * Are you sure you have the correct username and password? YES * Are you sure that you have typed the correct hostname? YES * Are you sure that the database server is running? NOT SURE –  JIM Mar 8 '11 at 20:35
    
@JIM - Heres the best article I've found on setting up your XAMPP server. I refer to it regularly, even though I've done it several times on several machines. sixrevisions.com/tutorials/web-development-tutorials/… It may take you 15 minutes to redo your install, but it would be time well spent. –  Ray Mitchell Mar 25 '11 at 17:18

This plugin Theme Test Drive is what I use to preview themes on a live site (for those times you need too) without affecting what normal users see when they visit your site. You can make themes only visible to administrators, whilst everyone else gets the old default theme you have set.

Just what you were after. Some helpful advice is to develop locally, it makes things so much easier and then FTP'ing the files to your server once you are happy with what you have locally.

Download a copy of XAMPP and it'll give you an easy and pre set up version of PHP, Apache and MySQL to work with on your own machine locally.

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.