This is an old revision of the document!
WordPress Setup & Configuration
Move Site
Using the Admin Panel:
- Login to admin panel in current site. Eg:
http://www.example.com/test/wordpress/wp-admin
- Go to Settings > General.
- Change to new URL in these fields:
- WordPress Address (URL). Eg:
http://www.example.com/wordpress
(assuming old URLhttp://www.example.com/test/wordpress
) - Site Address (URL). Eg:
http://www.example.com/wordpress
- Save & logout while ignoring errors and warnings.
- Move files to new path.
Eg: % mv /var/www/test/wordpress /var/www/wordpress
- Test new URL. Eg:
http://www.example.com/wordpress
Alternatively, you can change the WordPress database entries like this:
- Edit file
<wordpress>/wp-login.php
, and find this line:require( dirname(__FILE__) . '/wp-load.php' );
and insert the following lines below:
//FIXME: do comment/remove these hack lines. (once the database is updated) update_option('siteurl', 'http://www.example.com/wordpress' ); update_option('home', 'http://www.example.com/wordpress' );
- Visit the site one time. Eg:
http://www.example.com/wordpress
- Remove those lines in
<wordpress>/wp-login.php
.
In phpMyAdmin, you can edit the WordPress database as follows:
Table wp-options | |
---|---|
option_name | option_value |
siteurl | http://www.example.com/wordpress |
home | http://www.example.com/wordpress |
fileupload_url | Edit as needed (if this exists) |
<themename>_theme_options | Edit as needed |
References
Manually Remove Date from WordPress post and pages
Comment out references to the_date()
and the_time()
:
<strong><?php the_date(); ?></strong> <strong><?php the_time(); ?></strong>
Edit the following theme pages (in <wordpress>/wp-content/themes/<activetheme>
) to remove date/time entries in posts or pages:
- Home page:
index.php
- Blog Posts:
single.php
- Archive pages:
archive.php
- Category pages:
category.php
- Pages:
page.php
References