WordPress FAQ

Ask a Question

Why is the New Answers category in this FAQ empty?

Category 1, “New Answers” is something that is used to manage this FAQ. Since there are a number of authors enabled to post new answers in the FAQ, the authors leave the “New Answers” category selected. Then when the post has been reviewed the “New Answer” tag is removed, and the answer is saved. So often times, there are no answers in the category.

Filed under: —   2fargon 

What is the “posts paged” option used for?

The posts paged option is useful to have “next page” “previous page” navigation links on index.php or any other php file that displays posts.

To display the navigation links, posts paged should be selected, and the desired paging tag, like posts_nav_link() should be placed in index.php wherever they are desired. Usually it is placed at the bottom or the top of the page.
The navigation links are not included in the default index.php as of version 1.2.

Version 1.3 is expected to have navigation links in the default index.php file, and the posts paged option will be discontinued, with page-navigation enabled for all the pages that display a large number of posts.

Filed under: —   2fargon 

Can I rename the folder with the wordpress files?

If you have not installed WordPress, you can rename the folder with the WordPress files.

If you have already installed WordPress, and if want to rename the folder, login to the weblog as the administrator and change the following settings in Options->General :

WordPress address (URI):
Blog address (URI):

Once you have done this, you can rename the directory or folder with the wordpress files in it.

Filed under: —   2fargon 

Where can I find some good WordPress templates?

Root has made two customizable WordPress templates. To use these templates you will have to replace the index.php as well as the stylesheet (wp-style.css). More instructions are available at the following websites :

Filed under: —   Hanni 

How do I upload an image and display it in a post?

In the admin, panel, go to Options -> Miscellaneous and select the option to Allow File Uploads. If you need help with changing permissions, the following from the wiki should help:

Allow File Uploads: Choose whether or not to allow users, including you to upload files using WordPress(So they can upload files to link to from their articles). If file uploads are allowed, the few options related to this in the same page are applicable.

How to set your paths / permissions:
Once you have allowed File Uploads, download this tiny file: [http://www.tamba2.org.uk/downloads/absolutepath.zip]

Unzip it, and upload the php file to your chosen uploads folder.

In your browser, go to your website http://www.example.com/youruploadsfolder/absolutepath.php

Copy the path address you will see. Note: You may need to add a trailling slash after it. Example: /home/.sites/90/site104/images would be /home/.sites/90/site104/images/

Click Uploads on the main screen (top right of the menu it is)

Enter the path address in the top box

Enter the web address to your uploads folder: http://www.example.com/youruploadsfolder in the second box.

Using ftp or your cpanel, CHMOD or change the file permissions on your uploads folder to 777 or 766 or 755

The uploads folder does not have to be in the same directory as WordPress

If you have trouble finding the absolute path, you can use the tool described here

Then check main menu across the top. Click Upload.

You may want to refer to the following two articles.
How to properly aligning the images.
How to create a drop-shadow effect, with alignment

Originally answered by Podz at the Forums

Filed under: —   2fargon 

How do I prevent comment flooding?

Comment flooding is when a lot of comments (probably spam) are posted to your website in a very short duration of time. Mark has a Comment flood prevention hack that allows you set a time, which prevents successive comments from being posted too soon.

A copy of the code modification is given below (this is for WP 1.2) :

In wp-comments-post.php (between the comments, you should recognize the place), add the following:

// Simple flood-protection
$lasttime = $wpdb->get_var("SELECT comment_date FROM $tablecomments ORDER BY comment_date DESC LIMIT 1″);
if (!empty($lasttime)) {
$time_lastcomment= mysql2date(’U', $lasttime);
$time_newcomment= mysql2date(’U', $now);
if (($time_newcomment - $time_lastcomment) < 300)
die( __(’Sorry, this blog only allows a new comment once every 300 seconds. If you really want to write a comment, just wait a few and hit refresh on this page. Chances are you tried to add a comment about halfway between 0 and 300 seconds. Comment flooders are annoying. Thank you for being patient.’) );
}

Filed under: —   2fargon 

How I solve login problems after installation with version 1.2 ?

Another summary of what’s around the forums.
Try to login after each step.

#1. Clear your cookies
Cookies are in your computer.
In windows they are in
C: / docs and setting / username / Cookies folder.

#2. Clear the temp cache on your computer

#3.Edit wp-login.php
Go to the “case ‘retrievepassword’:” section.

Just under the comment (In 1.2mingus, the line in question is number 204):

// redefining user_login ensures we return the right case in the email

Replace:

$user_login = $user_data[’user_login’];

with:

$user_login = $user_data->user_login;

#4. Your blog host should provide you with phpMyadmin access to your databases for you to do this.
Open phpMyadmin, and click on the users table in the left menu (it could be wp_users, or yourprefix_users)
Click “Browse”
Click on the edit button next to the admin user.
Delete whatever is in the password field.
Now go to the md5 hasher
enter your desired password, and copy the hash that it generates
Paste the hash in the password field for admin
Save the info in the database.
Login to Wordpress using “admin” and the password you used to create the hash.
A guide to doing this is at Podz’ site

#5. Secure HTTPS ?
Change the following line in wp-includes/vars.php from:
define(’COOKIEPATH’, preg_replace(’|http://[^/]+|i’, ‘’, get_settings(’home’) . ‘/’ ) );

To:
define(’COOKIEPATH’, preg_replace(’|https?://[^/]+|i’, ‘’, get_settings(’home’) . ‘/’ ) );

Be sure also to change the url in Options to https://
(Credit for this solution to mcnicold)

#6. Head over to Sexygirlgeek’s wp-login fix
Copy the all the text from
Save it as ‘wp-login.php’ (Credit for this solution to sexygirlgeek)
Upload it to your wordpress directory
(If you get an error about ‘headers already sent’ after doing this, go here: Solving the headers already sent problem.

==================

If these steps fail, please say this when posting at the support forums and give details of your server setup if you know it, mysql and php versions, OS and browser, WordPress version.

Originally compiled by Podz at the support forum

Filed under: —   2fargon 

How do I change the size of the popup comments window ?

The size of the popup window is governed by line 50 of template-functions-comment.php:
function comments_popup_script($width=400, $height=400, $file=’wp-comments-popup.php’)

Then line 81 of wp-comments-popup.php will alter the textarea size for people entering comments.

1.2mingus

How do I do a “dropcaps” on the first letter of a post?

DropCaps is the name for the effect where the first letter of the first paragraph in an article “drops” blow the line, and is displayed in a larger font-size than the other normal letters, for an interesting and professional look.

This can be done using BBCode quicktags, in the following manner.

firstly, add this to your style sheet:

#fp:first-letter {
font-size : 300%;
font-weight : bold;
float : left;
margin-right: 3px;
}

add following code to file /wp-admin/quicktags.js, put them among “edButtons”

edButtons[edButtons.length] =
new edButton('ed_capdrop'
,'CapDrop'
,'<p id="fp">'
,'</p>'
,'c'
);

then you will see a CapDrop quicktag in your edit window.

That’s it.
Example here

This was written by Mulberry at the WP Forums

Filed under: —   2fargon 

How do I prevent my images from being hot-linked by another website?

You can use your .htaccess file to protect images from being hot linked, or, in other words, being linked-to from other websites. This can be a drain on your bandwidth, because if someone links directly to the image on your site, then you lose the bandwidth.

Clockwatchers’ htaccess image guide provides the details.

You can use this tool to check if the images are protected properly, and that has a few extra tips too.

A List Apart has a more sophisticated method of preventing hotlinking. (Thanks)

Originally answered by Podz

Filed under: —   2fargon 

Do I need to create a database ?

Yes and No.

If your hosting plan allows only one mysql database, you will probably need the first of these two answers.

If your cpanel tells you the name of your mysql database, then just enter that into DB NAME in ‘wp-config.php’

If you have multiple databases you can use, then you will need first create the database, and then give the name to DB NAME to ‘wp-config.php’ so that WordPress knows which one to use when installing.

Filed under: —   Podz 

How do I use the links rating feature to display the ratings?

In WordPress you have the option to rate the links in your Link Manager and display the ratings for the world to see.
To rate your links, edit the particular link (by using the “Links” interface), and rate the link from 0 - 10 using the dropdown menu.

To display your link ratings, it is neccessary to edit the link categories with the links that you want to display the ratings for to show the ratings (Links -> Link Categories -> Show -> Rating)
Once that is done, you can display the ratings using
a. a character (which you can specify in Options -> Link Manager -> links_rating_char – * by default)
b. a number (the rating, 0-9)
c. Images.

You can choose one of the above methods in Options -> Link Manager -> links_rating_type

If you are using Images, you have the choice to use the same image (tick- rating image) displayed n times to show a rating of n (Set by choosing True for Options -> Link Manager -> links_rating_single_image ) or using 10 different images, for one through 10. For example, the image used for showing a rating of 9 is rating 9 image

You can changes the images used by entering the relative URLs for the ratings images you want to use at Options -> Link Manager

Filed under: —   2fargon 

How do I backup and restore my WordPress database using phpMyadmin?

Backup Instructions :
Written using phpMyAdmin 2.5.4-rc2

1. From the main screen, choose ‘Databases’

2. Your existing databases will be displayed, click on the one you want to back up.

3. The next screen will show the tables within your database.

4. Click the ‘Export’ tab.

There are now several radio buttons (small circular ones) and several square tick boxes. In the ‘Export’ box, select the SQL radio button In the SQL options box, tick the following;

  • Structure
  • Add AUTO_INCREMENT value
  • Enclose table and field names with backquotes
  • the DATA box

5. Click ‘Save as file’ and the “zipped” button.

Restore Instructions :

  1. Scroll down on the left dropdown till you find your database, click on it
  2. On the right frame, click on the SQL tab
  3. All the way at the bottom of the frame, find “location of the text file”
  4. Click on browse, find the sqldump on your local computer
  5. Make sure Autodetect is checked and click Go
  6. You will see the results of your import to the database
Filed under: —   2fargon 

How can I customize the “more” tag?

If you want to change the text that is displayed in the link (default being “more…” ), change
a. change the_content(); in your index.php to be the_content('yourtext','',''); (i.e., the first parameter controls this.)
where yourtext should be the text you want displayed instead of more.

The more tag’s behavior upon clicking it can be customized in several ways.

If you want the entire post, from the beginning (instead of just the part after the more tag) to show,
you can
a. change the_content(); in your index.php to be the_content('','1',''); (i.e., the second parameter controls this.)
b. include <!--noteaser--> in the post text, immediately after the <!--more-->.

If on the other hand you want the more link to load a page with everything from the top displayed (including the header of the weblog etc),
edit the following line in wp-includes/template-functions-post.php
$output .= ' <a href="'. get_permalink() . "#more-$id">$more_link_text</a>";
to
$output .= ' <a href="'. get_permalink() .'">$more_link_text</a>";

Filed under: —   2fargon 

How do I show the excerpts of articles on the weblog homepage?

To show only the title of posts on the weblog homepage, in index.php replace
<?php the_content(); ?>
With something like:
<?php
if ($single) {
the_content();
}
else {
the_excerpt();
}
?>

This will show the post content only on the individual posts page, on the weblog homepage, and the archives pages, it will show the excerpt.

Filed under: —   2fargon 

How do I show only the titles of articles on the weblog homepage?

To show only the title of posts on the weblog homepage, in index.php replace
<?php the_content(); ?>
With something like:
<?php
if ($single) {
the_content();
}
else {//no content, nothing.
}
?>

This will show the post content only on the individual posts page.

Filed under: —   2fargon 

How do I exclude one or more(multiple) categories from being listed in the list of categories?

Use the following function to list your categories :

<?php wp_list_cats('exclude="1"'); ?>

change 1 to the ID of the category you want to exclude.
to exclude multiple categories, use

WordPress Encoder Widget

<?php wp_list_cats('exclude="1,2"'); ?>

change 1 and 2 to the categories you want excluded. You can exclude more of them by adding their IDs seperated by commas.

Filed under: —   2fargon 

How do I hide a category from the front page (index.php) ?

You can exclude a category’s posts from appearing on index.php by adding the following code at the top of the my-hacks.php (my-hacks.php should exist, and my-hacks.php support should be enabled in Options -> Miscellaneous )after the “<?php ” line :

if ((empty($_GET['cat']))&&(!preg_match('/wp-admin/', $_SERVER['REQUEST_URI']))) $cat = '-1'; //Replace 1 with your category

This will prevent that category being displayed in the feeds etc as well, but the posts in the category will be displayed when someone tries to load the URL for that category.

Filed under: —   2fargon 

How do I change permissions for my files so I can edit them using the Template Editor?

If you wish to edit a file (such as index.php) through the “Templates” option in WordPress, you have to first change the file permissions to “666″ to make the file editable by WordPress. If you have a ssh account, you can do this using the CHMOD comman, as follows:
>chmod 666 index.php"
for example.
If you use an ftp client, identify the file (eg., index.php) and find a method in the ftp client to change file permissions, which depends on your ftp client.
Some web hosts also provide an online “File Manager” which might enable you to change permissions on the file.

Filed under: —   2fargon 

Where can I find a tool to encode html entities and tags so that I can display code on my weblog?

The Encode tool will convert your html/xhtml code into a form that can be displayed on your blog without it being treated as html by browsers.

You could also use plugins too. There are a couple other tools, actually WP plugins, which may work better and more integrated. Try one of the following :

Filed under: —   2fargon 

How do I redirect users to the index.php page after the login from wp-login.php?

Find the following line of code :
<input type="hidden" name="redirect_to" value="wp-admin/" /></input>
in wp-login.php and change that to
<input type="hidden" name="redirect_to" value="index.php" /></input>

If your weblog is set up to have the index page in a different directory from the wordpress files, then you will have to replace index.php in the above line of code with the relative path(with respect to wp-login.php) of the blog’s index page to make this work.

This will redirect users to the index.php page instead of the wp-admin/index.php page after they log in.

Filed under: —   2fargon 

How can I ask a new question?

Leave a comment to this question here, and consider the question asked. One of the FAQ authors will be glad to answer them for you.
This is not the support forum though, so please use the forums for ‘advanced’ support.

Filed under: —   2fargon 

What do the _() and _e() functions in WordPress do?

In Wordpress, strings in the php files are marked for translation to other languages, and localization using two “tags” which are actually functions. They are:

__()
_e()

These accept a string as an argument. For example:

__("Translate Me")
_e("Translate Me")

The only functional difference between the two methods is that _e() echoes the string and () simply returns the string. () is used when you want to supply a string to a function. _e() is used when you want to output the string as part of your XHTML.

We have a tool which goes through all of the php files, extracting strings that are marked by __() and _e().

Adapted from the Localization Wiki Page

Filed under: —   2fargon 

What are user levels for and what permissions do different userlevels have?

User Levels

Brief explanation of the user level system (current situation, there may be some changes). General Principle: each user can edit/modify posts and options for other users whose level is lesser than his own. The main differences occurr between levels 0 to 5; 6 to 10 have the same privileges but the difference is rank, i.e. a 8 could edit a 6 but not vice versa.

user level 0:
o menu = * My Profile * View site * Logout
o Can login
o Can see existing posts.
o Own posts have (non-functioning) edit/delete buttons
o Can edit own profile.

user level 1:
o menu = * My Profile * View site * Logout (ML: fixed to include Post/Edit)
o Can post.
o Can edit/delete own posts.
o Can edit/delete comments on own posts

user level 2:
o menu = * Post / Edit * My Profile * View site * Logout

user level 3:
o menu = * Post / Edit * Team * Options * Categories * Template * My Profile * View site * Logout
o cannot edit the template (ML removed from menu)
o can add/edit/delete categories
o cannot edit options (ML removed from menu)
o cannot see team members login name!
o can promote/demote/delete lesser team member in the range 0 - (your level - 1)

user level 4:
o menu = * Post / Edit * Team * Options * Categories * Template * My Profile * View site * Logout
o can see team members login name!
o can edit options
o can edit template

user level 5:
o menu = * Post / Edit * Team * Options * Categories * Template * Manage Links * My Profile * View site * Logout
o Can edit timestamps
o can edit links (default value)

Filed under: —   2fargon 

Ho do I reset the password directly in the database if I want to?

If you have phpMyadmin access on your server, you can do the following to reset your admin password manually in case you need to :

Open phpMyadmin, and click on the users table in the left menu (it could be wp_users, or yourprefix_users)
Click “Browse”
Click on the edit button next to the admin user.
Delete whatever is in the password field.
Now go to md5 hash generator
enter your desired password, and copy the hash that it generates
Paste the hash in the password field for admin
Save the info in the database.
Login to Wordpress using “admin” and the password you used to create the hash.

For command line MySQL :
Get an MD5 hash of your password.
Visit [MD5 Hasher, | http://bfl.rctek.com/tools/?tool=hasher] or…
Create a key [with Python. | http://www.python.org/cgi-bin/moinmoin/Md5Passwords]
“mysql -u root -p” (log in to MySQL)
enter your password
“use (name-of-database)” (select WordPress database)
“show tables;” (you’re looking for a table name with “users” at the end)
“SELECT ID, user_login, user_pass FROM (name-of-table-you-found)” (this gives you an idea of what’s going on inside)
“UPDATE (name-of-table-you-found) SET user_pass="(MD5-string-you-made)” WHERE ID = (id#-of-account-you-are-reseting-password-for)” (actually changes the password)
“SELECT ID, user_login, user_pass FROM (name-of-table-you-found)” (confirm that it was changed)
(type Control-D, to exit mysql client)

Filed under: —   2fargon 

How can I get my links to open in a new window ?

This method will work for those links that you enter into the body of a post.
(The line number here refers to the 1.2mingus release)

In quicktags.js, on line 355 is this line:
edButtons[i].tagStart = '<a href="' + URL + '">';</a>

Alter it to read like this:
edButtons[i].tagStart = '<a href="' + URL + '" rel="external">';

Filed under: —   Podz 

How can I solve the “You are not authorized to view this page” (403 error) problem?

Symptoms:
You cannot seem to login after using the right username and password, into your admin account.

You get an error message like :

You are not authorized to view this page
You might not have permission to view this directory or page using the credentials you supplied.

——————————————————————————–

If you believe you should be able to view this directory or page, please try to contact the Web site by using any e-mail address or phone number that may be listed on the personal.rbhemauer.com home page.

You can click Search to look for information on the Internet.

HTTP Error 403 - Forbidden

Solution:
If your account is hosted on a Windows server, it could be a problem with the Directory Indexes. The default configuration of the server is to load index.htm, index.html, default.htm, default.html, default.asp files.

Wordpress is done in PHP so the default page is index.php. Now this is not part of the default configuration so we need to add it. To do this, you need to click on Web Options in the Control Panel. Then scroll down to the Directory Indexes section to add index.php to the Directory Indexes.

You could also contact your webhost for support in this matter.

Filed under: —   2fargon 

Why is my upload directory “C:apachehtdocswordpressimages” ?

When you specified the upload path, you used backslashes.

Use forward slashes “/” to specify the directory.

How do I stop HTML in comments ?

You need to edit the file ‘kses.php’ which is in the wp-includes folder.

Open that file, and at the top you will see the allowed HTML.
Comment out those tags that you do not want used.

A line of PHP is commented out - and therefore ignored - by placing // at the start of that line.

You can, of course, just delete the line too.

Filed under: —   Podz 

How can I stop someone from seeing my WordPress blog ?

There is no guaranteed way to do this.

You can use the .htaccess file (which also contains your permalink code) so check for certain IP addresses and prevent them from viewing your site.
A .htaccess can also prevent others ‘hot-linking’ to your images (bandwidth theft) or to set up a password protected blog.

One tutorial for this is located at http://www.clockwatchers.com/htaccess_intro.html

This file only stops the IP, not the person, so if they have access to another IP, they can get to your page.

Search Engines too will also index your site and cache your content.
If you do not want this to happen, use a file called ‘robots.txt’.
More details can be found at http://www.searchengineworld.com/robots/robots_tutorial.htm

How do I link to my own images ?

You must use absolute uris, not relative uri’s.

So the link to an image must not be
<img src="pictures/image.jpg" alt="" />

It must instead be
<img src="http://www.example.com/pictures/image.jpg" alt="" />

If you use relative uri’s, then any archived post will not display the image. It may, on the index page, but may not on the individual entry page or other pages.

Filed under: —   Podz 

Where is the permalink to my post ?

The title of your posts are the permalinks.

To reference another post of yours, either right-click the title of the post and select “Copy Link Location", or open it in another browser window and copy the address in the browser address bar.

Filed under: —   Podz 

How do I make my Archives appear in a drop-down list ?

Put this code into your ‘index.php’ where you wish the item to appear;

<li id="archives">Archives:

<ul>
<li><form name="archiveform" action="">
<select name="archive_chrono" onchange="window.location = (document.forms.archiveform.archive_chrono[document.forms.archiveform.archive_chrono.selectedIndex].value);">
<option value=''>By Month</option>
< ?php get_archives('','','option', 1); ?>
</></select>
</form>
</li>
</ul></li>

Filed under: —   Podz 

Which files must I delete after installing WordPress ?

There are no files that you must delete.
There are no risks to your WordPress files or your database by leaving all the files exactly as they were when you uploaded them.

If you really do want to delete anything - and all this will do is save you a fraction of webspace - you can delete the following;
license.txt
Readme.html
the import*.php files

Filed under: —   Podz 

How do I rotate/cycle/randomize the image in the header of the weblog?

1. Get a copy of Matt’s display a random image from those present in a directory.
2. Make a folder just for my header images
3. Upload the above file into that as ‘rotate.php’
4. Upload various header images
5. Change #header in wp-layout.css to read like this (part of it)

#header {
background-color: Black;
background-image: url(headers/rotate.php);

Thanks, Podz.

Filed under: —   2fargon 

How do I backup my database ?

Written using phpMyAdmin 2.5.4-rc2

From the main screen, choose ‘Databases’

Your existing databases will be displayed, click on the one you want to back up.

The next screen will show the tables within your database.

Click the ‘Export’ tab.

There are now several radio buttons (small circular ones) and several square tick boxes. In the ‘Export’ box, select the SQL radio button In the SQL options box, tick the following;

* Structure
* Add AUTO_INCREMENT value
* Enclose table and field names with backquotes
* the DATA box

Click ‘Save as file’ and the “zipped” button.

Ignore the filename.

Click ‘Go’.

A popup window will indicate that a file is to be downloaded. Save this to your computer.

There you go - you have backed up your WordPress database.

Filed under: —   Podz 

How can I use a custom image for my list bullets ?

In this case, you use list-style-image to instruct the browser to use your image instead of the usually small-black circle or square.

By default, the value of list-style-image is NONE. To use this, all you need to do is add some code in your style sheet, like this:

ul {
list-style-image: url(/wp-images/yourimage.gif);
}

Note that you could also substitute a complete URI in there: change the url( ) to url (http://example.com/wp-images/yourimage.gif).

Filed under: —   Podz 

How do I get rid of the bullet points next to my links in the menu ?

Your menu items are controlled by one of several tags:
#menu ul
#menu ul ul
#menu ul li
#menu ul ul li

If a style type is not defined, then your browser will default to showing a black circle(bullet, disc) next to each item in a menu. If you define the style you want, you can remove the disc.

Do this by including this in the CSS declaration for the items that you want not to have the black circle;

list-style: none;

For instance, to remove the black circle from an unordered list element:

#menu li {
list-style: none;
}

Filed under: —   Podz 

Does the “644″ permissions on wp-config.php compromise the username and password to all other users on my shared server?

This is a limitation of the way PHP is set up on your server. If you previously used MovableType, Perl was probably set up with suexec so Movable Type executed as your user. In this case, PHP is running as the web server user, which is why it has to be at least 444. There is phpsuexec but I don’t think many hosts use it.

However this is often not an issue on modern shared hosts because even though the file is “world” readable each account is set up with a “jailshell” which keeps people locked in their home directory, and PHP can be easily modified with an open_basedir restriction to keep people from writing PHP scripts to read your files. If you are really concerned, you should contact your host to see what measures they are taking.

Filed under: —   Podz 

Which files do I modify when I start to design my site?

The following files affect what the public see, and each can be easily changed by using the Templates option in your admin screen:

  • index.php
    This affects the layout of your content
  • wp-layout.css
    This is how the style and presentation of your blog is controlled.
  • wp-comments-popup.php
    Only needed if you decide to use a popup comments box. (Popup comments are off by default).
Filed under: —   Podz 

Do I need to know PHP to use WordPress ?

No.

The only time you would modify your WordPress blog with PHP would be when integrating some of the plugins. In this case, clear instructions are given within a text file with the plugin.

Other than that, you would not be changing any of the PHP files.

Filed under: —   Podz 

How do I upgrade ?

  • First, backup your database.
  • Backup all those files that you have modified. This may include - but is not limited to - index.php, wp-layout.css, wp-comments.php. If you are in doubt, backup all the folders in your WordPress directory to your computer.
  • Delete all the WordPress files from your WP directory. If you have other files / folders in there (such as a folder for images), do not delete those.
  • You do not have to delete ‘wp-config.php’ - this information will remain the same.
  • You do not have to delete ‘wp-layout.css’ but ensure that you do not upload the same file from your new WP.
  • Upload the new WordPress files.
  • Run the upgrade script i.e. www.example.com/wp-admin/upgrade.php
  • Now you have to go through the new files and make the necessary changes - using your previously backed up files as reference - to make your blog look and work as before.

Filed under: —   Podz 

How do I change the ’site admin’ name ?

Do this in your Profile section of your wordpress admin screen.

Filed under: —   Podz 

Can I show the RSS feed from other sites on my blog ?

The instructions for doing this, by Carthik, are here - FOF powered subscriptions page hack

Filed under: —   Podz 

How can I have the date/time displayed on every entry I make ?

In ‘index.php’, find this line:

<?php the_date('','<h2>','</h2>'); ?>

and replace it with this line instead:

<?php the_time('','<h2>','</h2>'); ?>

Filed under: —   Podz 

How do I make my categories appear in a drop down list ?

In your ‘index.php’ replace this line:

<?php list_cats(0, 'All', 'name'); ?>

with this:

<form action="<?php echo $PHP_SELF ?>" method="get">
<?php dropdown_cats(); ?>
<input type="submit" name="submit" value="view" />
</form>

Also See: The Wiki Template Tags page for more details.

Filed under: —   Podz 

How do I make my Categories appear in alphabetical order ?

In your ‘index.php’ you will have this line:

<?php list_cats(0, 'All', 'name'); ?>

Replace that with this line:

<?php list_cats(0,'','name','','',true,0,1,1,1); ?>

Also See: TheWiki Template Tags page For more details about template tags.

Filed under: —   Podz 

How do I use a css style from Alex King’s site ?

If you want to use it as part of a styleswitcher, then please read those instructions instead.

If though you want the style to replace what you have, read on.

Unzip the downloaded style
Open the folder it has created, and find ’style.css’
Rename this to ‘wp-layout.css’
Now upload that stylesheet and whatever was also in that folder to your WP directory.

Any images included should stay in a folder if that is how they appeared when you unzipped the download.

Filed under: —   Podz 

What is trackback ?

Track Back reinforces the communities of weblogs and their authors. The system enables webloggers to communicate between their weblogs. If one user creates an article that an other would like to comment on in their own weblog, Word Press can ping the original entry to notify the original author of his response.

For example, Fred is reading Edward’s weblog and comes upon a particular article he finds humorous, so he decides to make a post about it on his own weblog. If Track Back is used, Edward can be notified that Fred has posted the article on his website. An extract from Fred’s post will also appear on the comments/trackback page of Edward’s original post.

Also :
http://www.muhajabah.com/islamicblog/what-is-tb.htm
http://www.cruftbox.com/cruft/docs/trackback.html

Filed under: —   Podz 

What is pingback ?

The following information is from http://www.hixie.ch/specs/pingback/pingback-1.0

    Pingback is a method for web authors to request notification when somebody links to one of their documents. Typically, web publishing software will automatically inform the relevent parties on behalf of the user, allowing for the possibility of automatically creating links to referring documents.
    For example, Alice writes an interesting article on her Web log. Bob then reads this article and comments about it, linking back to Alice’s original post. Using pingback, Bob’s software can automatically notify Alice that her post has been linked to, and Alice’s software can then include this information on her site.
Filed under: —   Podz 

How do I get .phps files to show up in colored text on my server?

If you want to have your server display .phps files in color like this .phps file, add the following line:

AddType application/x-httpd-php-source .phps

to your .htaccess file in the server root directory.
(Thanks to Kitten)

Filed under: —   2fargon 

How do I turn on Permalinks, and what do I do about the errors?

Permalinks are neat looking urls, and turning on the permalinks option creates a virtual directory structure and gives you links such as http://example.com/wordpress/archives/2004/04/30/this-post instead of
http://example.com/wordpress/index.php?p=34

You can turn on Permalinks for your weblog at http://example.com/wordpress/options-permalink.php

To turn on and use Permalinks, your Apache server needs to have the mod_rewrite module compiled and available (which is the case for most webservers anyways)

Enter the desired structure for links in your Weblog using the Template Tags listed above on the same page, and hit “Update” to get a bunch of lines (rewrite rules) you can append to the .htaccess file in the root directory of your weblog.

The rewrite rules should be entered one per line, with no unwanted newlines in the middle of a rule, and without unwanted white-space. If you want to edit the .htaccess file using the “Templates” option, you should first change the permissions of the .htaccess file to 766, so that WordPress can save the changes you make to it through the Template editing interface. Consult the userguide or FAQ of the FTP software you use to find out how to have the software display “hidden” files, since .htaccess is a hidden file (the name begins with a “.", that’s why :) ), and also how to use the software to change file permissions.

The most common problems that arise while using Permalinks are the following browser errors :
403: Forbidden. This most likely means you(or the script you are trying to run) does not have permissions to the file or directory. Using the chmod command, in your FTP client or locally, try setting the file or directory you are trying to access to: 777 which means read, write, execute for all users. This is just to try and narrow down the problem however. MAKE SURE YOU CHANGE THIS AFTER. Something like 644 (read, write for the owner, read only for everyone else) should be sufficient for file permissions, and 755 for directories.
You could also try adding the following line at the top (the very first line) of .htaccess :
Options +SymLinksIfOwnerMatch

404: The well known ‘file not found’ error. You might get this while trying to enable permalinks. I have found that it is most likely due to having the wrong directory listed as your Rewrite Base in .htaccess. Wordpress says to use / but sometimes this is incorrect. For example on my server I need to use: Rewrite Base /home/adailyad/public_html/ Either call your ISP or just keep trying different paths till you get it. Running phpinfo.php (in your wordpress directory) might give you some hints, look for the path value.

500: This is a internal server error. Most likely caused by a mistake in your .htaccess file. It’s basically the server’s way of telling you that you tried something you aren’t allowed to do. Many people have trouble with mod_rewrite while trying to enable permalinks. Or you might have made a mistake writing an access rule.

If you are trying to turn on the Rewrite engine, and keep getting this error try this in your .htaccess file:

<ifmodule mod_rewrite.c>
RewriteEngine on
RewriteBase /YOURPATHHERE
</ifmodule>

Notice the <ifmodule mod_rewrite.c> and the </ifmodule> commands. These are not given when Wordpress provides the code for permalinks. Add your directives and commands after the Rewrite Base and before the

(thank you, Clay )

If you are trying to get them to work . and can’t, try putting the following line at the top (very first line) of your .htaccess file
Options +FollowSymLinks
This is a server-specific thing, and might help in some cases.

For local installations, on a server in your desktop or laptop, try overriding Apache’s defaults by using the following at the top of your .htaccess (or by editing /etc/httpd/users/your_user_name.conf )



Options Indexes Includes FollowSymLinks Multiviews
AllowOverride All

Order allow,deny
Allow from all

If you have the following problem:
The image, and other file URIs in your posts show up wrong, as described in this support forum thread, that is, for example, an image in /weblog/images/xyz.gif gets redirected to /archives/yyyy/mm/dd/xx/images/xyz.gif or similar,
you can fix it by following this w3.org recommendation, which is to add a line that says:
<base href="http://www.youwebsite.com/"> in the head portion of your index.php file. This will set a base URL. You can then type and use relative links with reference to the specified base URL in your posts.

If all else fails , try using a filename-based Permalink structure, such as :
/index.php/archives/%year%/%monthnum%/%day%/%postname%/ in the wp-admin/options-permalink.php page.

Filed under: —   2fargon 

How do I create an archives page, with all the entries sortable by different methods?

For nicer looking archives, like the one at Mindful Musings Archives, use the narchives script.

Filed under: —   2fargon 

How do I find the absolute path?

You can use Podz’ Tool to find absolute path, by downloading it and using it as suggested in the readme included.

Filed under: —   2fargon 

Where can I find an FTP and CHMOD tutorial for WordPress?

FTP and CHMOD tutorial explains it all.

Filed under: —   2fargon 

How do I get WordPress to generate links to the thumbnail of an uploaded picture?

WordPress by default only produces very limited code after uploading a picture. If you want to get code for the thumbnail link, the thumbnail etc, autogenerated, the following resource will be useful…
Upload with thumbnail code
The hack is discussed in this thread
The actual code is saved below for reference in case the source URL is down:
(more…)

Filed under: —   2fargon 

Why Would I Choose WordPress?

One of the principle advantages of WordPress is that you are in control. Unlike remote-hosted scripts such as Blogger and LiveJournal, you host WordPress on your own server. Installation is very simple as is the configurationunlike some other software programs out there, there arent a million files to chmod nor are there dozens of templates to edit just to get your site set up and looking the way you want. Blog pages are generated on the fly whenever a page is requested, so you dont have multiple archive pages clogging up your web space. Template changes are completed in scant seconds, because you dont have to wait for your site to rebuild itself.

WordPress is built following W3C standards for XHTML and CSS, ensuring that your site is more easily rendered across standards-compliant browsers. Other browsers are supported with a few hacks; it’s a reality of the web in which we weave that hacks are necessary. Aggregator support is built-in with a number of standard RSS configurations already done for you, as well as Atom. Following standards makes your WordPress site easier to manage, increases its longevity for future Internet technology adoption, and helps to give your site the widest audience possible.

Filed under: —   steamedpenguin 

How Is WP Related To Other Blogging Applications?

WordPress was primarily inspired by Noah Greys Greymatter open-source web log and journal software. It is related to b2, sort of a second cousin twice removed. You can use WP to post your own stories, ideas, rants, reviews, links, and pictures of your toothless Uncle Ernie at the wedding reception if you choose. In addition, you can customize the look and feel of your site. The templates can be modified in many different ways and you can use CSS in your design. As you can see, its functionality exceeds or at least is similar to what most blogging tools available today.

Filed under: —   steamedpenguin 

How do I fix the following error: SQL/DB Error: [errcode 13]Can’t create/write to file ?

The Problem: The MySQL variable tmpdir is set to a directory that cannot be written to when using PHP to access MySQL.
To verify this, enter MySQL at the command line and type
show variables;
You’ll get a long list and one of them will read:
tmpdir = /somedir/ (whatever your setting is)

The Solution: Alter the tmpdir variable to point to a writable directory.

The Steps:
1) find the my.cnf file. On LInux/Unix systems this is usually in /etc/.
2) Once found, open this in a simple text editor and find the [mysqld] section.
3) Under this section, find the tmpdir line. If this line is commented (has a # at the start), delete the # and edit the line so that it reads:
tmpdir = /writable/dir

where /writable/dir is a directory to which you can write. I use /tmp, you might also try /home//.

4) save the file
5) shutdown MySQL by typing

mysqlshutdown -u -p shutdown

where ith admin rights to MySQL.

6) Start MySQL by going to the MySQL directory and typing

./bin/safe_mysqld &

Usually the MySQL directory is in /usr/local or sometimes in /usr/ on Linux systems.

If none of this make sense and you have someone admining your system for you, show the above to them and they should be able to figure it out.

Thanks to rickg17

Filed under: —   2fargon 

What are the requirements for installing WordPress?

In short: PHP 4.1 (or any version thereafter) and MySQL 3.23.23 (again, the minimum version). The Apache mod_rewrite module is optional.

More than 5 Mb of available Web space and more than 1 Mb of available database space are recommended.

More detail at the Requirements section.

Filed under: —   steamedpenguin 

Can I get my profile information as an FOAF file?

Yes, you can. The details of the hack are at
Crschmidt.net
See Also : Binary Relations’ profile page hack

Filed under: —   2fargon 

How do I fix the following error: SQL/DB Error: [Got error 28 from table handler] ?

This is a MySQL error and has nothing to do with WordPress directly. You should probably contact your host about it. Some users have reported that running a “repair table” command in phpMyAdmin fixed the problem.

You can also check this newsletter on
Error 28, and how to avoid it

Filed under: —   steamedpenguin