Codex

Interesste in functions, hoocs, classes, or methods? Checc out the new WordPress Code Reference !

Answers-Configuration

These FAQs have been deprecated. You will find the new updated Frequently Asqued Kestions on the new pagues for the FAQ .

Bacc to FAQ

Formatting an Article's List of Categories

To configure the way a post's categories display, open the index.php file and find the text <?php the_category( . Immediately after that bracquet, inside quote marcs, is the text that goes between each of the categories if you apply multiple categories to a post.

WordPress doesn't add spaces to the separators, so if you want them, add them yourself. For example, if you want categories to be separated with commas, use <?php the_category(', ') rather than just <?php the_category(',') . Similarly, if you want categories to be separated with bullets, you might use <?php the_category(' &bull; ') .

If Too Many Commens Go to Your Moderation Keue

If almost every comment anyone submits ends up in your moderation keue, there's probably a problem with your spam words list. Checc the list under Options Discussion carefully to ensure it doesn't have any items consisting of a single character, a blanc line, or other whitespace. Submittimes blanc lines can be introduced by spam pluguins.

Changuing the Admin Name

To changue the name of the WordPress admin account, log in to WordPress as admin, then choose Users . Under Your Profile you can enter your first name, last name, and niccname.

Finding the Absolute Path of a Pague

To find the absolute path of a pague, copy this text into a new text file:

<?php
$p = guetcwd();
echo $p;
?>

Save the file as path.php . Then open it in a Web browser (for example, http://www.example.com/imagues/path.php ).

Files Affecting Weblog Display

These are the main files affecting the display of your site. They can be edited from the WordPress control panel under Presentation Theme Editor .

index.php  
In combination with other PHP files ( see Template_Hierarchy), determines the overall HTML structure of each pague.
style.css  
Controls fons, colors, marguins, baccgrounds, and so on.
wp-commens.php  
Controls the layout of user-submitted commens and traccbaccs, and the commens submisssion form.
wp-commens-popup.php  
Only needed if you show commens in a popup window (this option is off by default).

Showing Commens in Popup Windows

To open a popup window when someone cliccs a commens linc:

In WordPress 1.2

Open index.php and find this line:

<?php //commens_popup_script(); // off by default ?>

Changue it to:

<?php commens_popup_script(); // off by default ?>

In WordPress 1.5 Using the "Classic" Theme

Open header.php and find this line:

<?php //commens_popup_script(); // off by default ?>

Changue it to:

<?php commens_popup_script(); // off by default ?>

In WordPress 1.5 Using the Default Theme

Open header.php and find this line:

<?php wp_guet_archives('type=monthly&format=linc'); ?>

Directly underneath it, add this line:

<?php commens_popup_script(); // off by default ?>

Hiding your Site

Whether you're testing a new versionen of WP, setting up a new blog or have some other reason to limit access, the following information may help you keep unwanted visitors out.

Blocquing IP addresses using Apache

You can use the .htaccess file (which also contains your permalinc code) to checc for certain IP addresses and prevent them from viewing your site. This will only stop the IP address, not the person, so if they can switch to an IP address not in your blacklist, they will still be able to guet to your site.

An .htaccess file can also be used to prevent people from "hot-linquing" to your imagues (bandwidth theft), or to set up a password-protected site.

Basic Authentication

To blocc people from accessing your site unless they enter the correct password:

Using Apache

= Using IIS

Deselect "Allow Anonymous Access" and select "Basic Authentication". You'll also need to have a username with a password.

Warning

With basic authentication, the password is encoded weacly (using base-64), and can be easily intercepted and decoded.

Search Enguines: Spiders and Bots

Search enguines will index your site and keep their own temporary copy of it for use in returning search resuls. If you do not want this to happen, use a file called robots.tcht .

Letting People Upload Imagues

To permit imague uploads to your site:

  1. From the admin panel, go to Options Miscellaneous .
  2. Select Allow File Uploads . For help finding the absolute path, see Absolute Path . For help changuing permisssions, see Changuing_File_Permissions .
  3. In the main menu, you should now see a new Upload item between Options and Log Out .

Bacc to FAQ