• Everytime I want to create content on my blog that is NOT a blog post, I simple create a Page in my WordPress dashboard. Currently, everytime I add a new Page, it becomes listed on the top navigation bar and its URL looks like: http://www.example.com/page

    My question is, is there a way to do this without having to constantly create a Page? Is there any way to create a directory of some sort that could do this? What I ultimately want to accomplish is create a Page that contains links where the URL of those links would be: http://www.example.com/page/link.html

Viewing 3 replies - 1 through 3 (of 3 total)
  • If you just want specific pages listed in your navigation and need to create other pages, then use the include=x,y,z argument (where x,y, and z are the Page IDs you want included in the navigation) with the template tag, wp_list_pages().

    Thread Starter rogerklotz

    (@rogerklotz)

    Thank you Michael. Now, here’s part 2 to my concern:

    Let’s say for example I have a page on my blog called “About”, which is located in the navigation and has a url of http://www.example.com/about. This is a completely static page. In the “About” content are a list of the bloggers names who contribute to the blog. Would it be possible for each of their names to be a hyperlink that will go to their individual bio pages, so the URL would be http://www.example.com/about/blogger1bio.html. How do I do this and still maintain the current theme of the blog?

    In your page template use something like:

    <?php
    $blogusers = get_users_of_blog();
    if ($blogusers) {
    foreach ($blogusers as $bloguser) {
    $user = get_userdata($bloguser->user_id);
    echo '<p>User ID ' . $user->ID . ' ' . $user->user_firstname . ' ' . $user->user_lastname . ' is a user of this blog.</p>';
    //display your link and other stuff here
    }
    }
    ?>

    Also related Author Templates

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to create a Page that is not a blog post?’ is closed to new replies.