Fri 25 Jun 2004
HOW TO MAKE AN “ABOUT ME” PAGE
Posted by Neil Uchitel under Wordpress - Brief Tutorials For Super NoobsThere are several ways to make an “about” page in WordPress. One is to create a separate “about.php” page in your root folder, hollow it out, and put in the text you want as your content. Or, you can create a link (or Link Category) for your “About Me” page like I explain below, and just enter the correct URI (www.myblog.com/about.php), and assign it to your link category.
I wanted to be able to create a post called “About Me” so that if I wanted to edit it later, I could do so within WP, without having to change my index.php file, or create a separate “about.php” file. Here’s how to do that:
First, download and install MooKitty’s Show Categories plugin. It’s a great plugin that’s very customizable and makes it very easy to show and hide categories and posts in your index.php file with a minimum of code. Follow the directions and put the proper code in your index.php file.
Create a category and call it “About” (or whatever you want). Take note of the category number.
Create your post called “About Me” (or whatever). Assign it to your category “About”. Publish it.
View your home page, click on your new post and copy the permalink URI.
Go to Links, and add a Link Category called “About”, then create a link called “Me”. Paste the permalink URI into the appropriate field, and assign it to the Link Category “About”. Now, you’ll have a Link Category and a link under it that people can click on. In my case, I have two about pages, one for DF&C, one for me personally, so this is why I’ve done this. If you want the “About” link category at the top of your links list, you’ll have to reorganize (and possibly delete) all of your previous link categories.
In your index.php file, find the following code:
<?php if ($hcp_posts) : foreach ($hcp_posts as $post) : start_wp(); ?>
This is the code that Kitty had you insert in your index.php file.
Now, place the following code BEFORE her code (or, if you already did it when you installed her code, modify it to this):
<?php hide_category_posts( 'category=x' ); ?>
Where “x” is the category number of your link category. This hides posts in your archive category “About” from showing up on your home page. If you are hiding the posts of more that one category from your index page, the code should look like this:
<?php hide_category_posts( 'category=x,y,z' ); ?>
Now, you’ll want to hide the category itself, so that it doesn’t show up in your categories list.
Find this code in your index.php file:
<li id="categories"><?php _e('Categories:'); ?> <ul> <?php wp_list_cats(); ?> </ul> </li>And change it to this:
<li id="categories"><?php _e('Categories:'); ?> <ul> <?php wp_list_cats('exclude=x'); ?> </ul> </li>
Where “x” is the category number. This hides the archive category “About” from your categories list.
If you haven’t done so already and want to alphabetize your category list, do this:
<?php wp_list_cats('sort_column=name&exclude=x'); ?>
If you want to have the number of posts in each category shown after the name, do this:
<?php wp_list_cats('optioncount=1&sort_column=name&exclude=x'); ?>
Now, you should be able to click on your “About Me” link in your links list, and it should come up as its own separate entry in your blog, and the archive category should be hidden. If you want to hide the options for comments or pings on your “About Me” page, just un-check the boxes at the top of the new post window in WP.
June 25th, 2004 at 1:19 am
Don’t forget to mention in step six that you have to call the function before using $hcp_posts in the WP loop! Glad you liked it.
June 25th, 2004 at 6:39 am
WordPress Tutorial: How To Make An “About Me” Page
This easy to follow WP tutorial shows users how to create “About Me” type pages without them showing up on your home page or in the category list. You’ll end up linking to it from links list.
June 25th, 2004 at 8:53 am
Great tutorial, thanks for taking the time to put it up.
June 25th, 2004 at 12:41 pm
I’m not really a programmer (though I’ve done some in my day), and I wanted to give back a little to the WP community and start some tutorials for .php sooper noobs like me. Glad you liked the tutorial!
June 28th, 2004 at 8:59 pm
Thanks for this tutorial. It works great. I had already created my about page, but just didn’t know how to hide the categories and to hide it from the main page and archives.
I do have one question though. Have you found out a way to strip the posted by, date, time, and comments sections from the about post? I would just like to have a clean looking page that doesn’t really look like a post without the trouble of creating a separate page that is more difficult to edit than to edit a post.
I saw the post (http://wordpress.org/support/3/8007) regarding how one might go about doing it, but it does nothing for me when I add the code. Nothing changes.
Thanks!
Josh
June 28th, 2004 at 9:34 pm
I think you have to do an if…then statement within the div (if the post comes from categories x,y then display the about page without all that other stuff, else display it)…I need to check that out first though.
July 9th, 2004 at 5:11 pm
About Me Page
How to make an “About Me” page in WordPress…
July 21st, 2004 at 1:36 pm
Strip the Comment-Stuff on the about page
Hi,
i extended the tutorial found here,
because I didn’t want the comment stuff on my about page…
how it goes:
first step
on top of your index.php add
$checkabout=$GET[’p'];
right under the
require(’./wp-blog-header.php’)…
November 11th, 2004 at 2:54 am
Hi,
first of all thank you so much for your tutorial!
I’m using Kubrick and followed your tutorial but it just wouldn’t exclude the “about” category (on my site called “contact”). Any suggestions?
November 11th, 2004 at 3:08 am
I just found out how to exclude it with Kubricj (1.2.6):
The line
< ?php listcats(0, ‘’, ‘name’, ‘asc’, ‘’, 1, 0, 1, 1, 1, 1, 0,'’,'’,'’,'’,'’) ?>
should be changed
to
< ?php listcats(0, ‘’, ‘name’, ‘asc’, ‘’, 1, 0, 1, 1, 1, 1, 0,'’,'’,'’,'’,'x’) ?>
where x stands for the category to be excluded in the category list.
November 11th, 2004 at 3:09 am
Kubrick I meant
February 15th, 2006 at 10:20 pm
very nice tutorial, thanks for sharing this to all of us.
meera