I recently got a nice email from someone who is apparently using WordPress to create his first site. And he’s keeping it simple (which is not a bad plan if you are just starting and not very comfortable with the technology).
Very nice work on your guide…I am a total technophobe and this made jumpin’ in a whole lot easier.
I want to create a simple sales letter using WP…just photos and text with a privacy page…basic…
Any simple formula I can follow you would recommend?
I’m thinking your simple sales letter, is similar to an “About Us” page. This part is pretty easy. You will:
Log into the Administrative portion of your WordPress site as is explained in the Beginner’s Guide to WordPress 2.7
- Click on
Pagesin the left-hand navigation.
- Click on
Add Newfrom the Pages sub-menu.
- Add your page content.
- Be sure to include your most important keyword phrase in your page title. For example, if you are selling “cat toys”, your page title should be something like “Feather Flyer Cat Toy”. Keep it short because this will appear where ever your page navigation goes in your theme.
- Add your tags
- And click the Publish button.
This requires modifying your actual header and foot template code. If you are not comfortable making these changes, you may want to leave things alone for now. But if you are feeling a bit bold, it’s not terribly difficult.
How To Change the wp_list_pages Tag to Exclude Specific Pages
In whichever template your page navigation list appears (usually header.php or sidebar.php), you will see a bit of code that looks something like this:
<?php wp_list_pages('depth=1&sort_column=ID&title_li='); ?>
This is the chunk of WordPress code that displays all of your Pages (not your Posts, but your Pages; and if you don’t know the difference between Pages and Posts, please download the tutorial the Beginner’s Guide to WordPress 2.7 and read that bit – it’s important!). To prevent WordPress from listing a particular Page, you need to tell WordPress what to exclude.
In your wp_list_pages tag you want to add to text
&exclude=THE-ID-NUMBER-OF-PAGE-TO-EXCLUDE so that your code looks something like this:
<?php wp_list_pages('depth=1&sort_column=ID&exclude=290,299&title_li='); ?>
Where did I get the ID numbers of the 2 Pages I wanted to exclude? Another good question!
Edit in your left-hand Pages navigation sub-menu of your WordPress Administration.
You will see the list of your Pages.
Hover your cursor over your Privacy Page listing. Don’t click, just hover.
At the very bottom of your browser window – and I do mean the Very Bottom – in the left-hand corner, you should see the URL to that Page. It will look like this:
That number at the end, your post number, is what you want. This is the number you want to exclude.
You are going to be so disappointed in me… I cheated. Here’s what the code looks like:
Well, Tom, I hoped that helped. And thank you again for stopping by.
Please do me a favor and link to the site and add it to your favorite social media.