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 any references to get_the_date()
and get_the_time()
:
<?php echo get_the_date(); ?> <?php echo get_the_time(); ?>
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
,post.php
,post-single.php
- Archive pages:
archive.php
- Category pages:
category.php
- Pages:
page.php
References
Update Content
- Home page:
- Pages > Welcome.
- Products
- Posts, then Add or Edit the current products.
- Contact (footer box):
- Appearance > Widgets.
- Select Footer Widget Area 3, and edit the Text:Contact box.
- New Product (right sidebar box):
- Appearance > Widgets.
- Select Footer Primary Sidebar, and edit the 'Info Box:New Product'.
- Header Logo:
- Appereance > PersonalFinance Theme Options
- General > Logo Image
Installed Plugins
- BAW Login/Lougout menu: Add login/logout link in menus.
- Contact Form to Email: Contact form.
- iframe: Shortcode to embed arbitrary webpage in an iframe in posts or pages.
- Sky Login Redirect: Redirects users to the page they were reading just before logging in.
- WP Content Permissions: display different content for login and guest users