A Page After A Page - Wordpress

by Max Whitson 6 replies
Hello,

I am curious how you make a page within a page in wordpress. Let me give you an example.

Every time you create a new page in wordpress it shows up on the home page. I do not want that.

You create a page that is titled "Animals" so on that page is all your animal pictures and what not, but in order to read what they are specifically you have to click on a picture/link with that page.

The problem is, how do I make the a page for a "Horse" a page, but not let it show up on the home page? I hope I have made myself clear.

Thanks,
Max
#main internet marketing discussion forum #page #wordpress
Avatar of Unregistered
  • Profile picture of the author EricWPM
    I think you're getting posts and pages mixed up...

    On a standard WP install a post will show up on the homepage until it cycles off the homepage.

    Creating a "page" will give you a static page that will not show on the homepage. Go to the MANAGE section of your blog and you will see the difference between POSTS and PAGES (assuming that you have created both).

    So to answer your question... Create a PAGE titled Animals. Now create another PAGE titled Horses. Now go back to your Animals page and add the picture/link to your Horses page.

    Keep creating new pages for your animals and linking to them from your main Animals page. You will probably need to add a link in your nav menu or sidebar so people on the homepage can find your Animals page.
    {{ DiscussionBoard.errors[95094].message }}
    • Profile picture of the author ripsnorta2
      The way to do this with Wordpress is to make your second page a child of the first page.

      When you are creating or editing your new page, go down to the advanced options section and open up the Page Parent. Just use the dropdown selection to choose the page you want to be the parent and save the page. That should be all there is to it.

      Then, as BigSmileMedia says, add your link to another page or your sidebar. Whatever suits your design.
      {{ DiscussionBoard.errors[95129].message }}
      • Profile picture of the author Michael D
        Originally Posted by ripsnorta2 View Post

        The way to do this with Wordpress is to make your second page a child of the first page.

        When you are creating or editing your new page, go down to the advanced options section and open up the Page Parent. Just use the dropdown selection to choose the page you want to be the parent and save the page. That should be all their is to it.

        Then, as BigSmileMedia says, add your link to another page or your sidebar. Whatever suits your design.
        Ah you beat me to the punch!
        {{ DiscussionBoard.errors[95132].message }}
        • Profile picture of the author ripsnorta2
          Originally Posted by Michael D View Post

          Ah you beat me to the punch!
          Lol.

          You're right about the theme Michael. If it doesn't support this method, it won't work.

          Fortunately it's not hard to fix.

          The following bit of PHP code will list the pages properly for you. You'll probably find something like it in the header.php file in your template. If it's not there, you will need to add where the menu links are displayed.

          Code:
          <?php wp_list_pages('title_li=&sort_column=menu_order&depth=1'); ?>
          The depth parameter is what you are interested in here. If you just want top level pages displayed, make sure it is set to 1. For each level down that you want displayed, set it to that level.

          Animals (Level 1)
          -------> Horses (Level 2)
          --------------->Clydesdales (Level 3)

          Hope this helps.
          {{ DiscussionBoard.errors[95147].message }}
          • Profile picture of the author Max Whitson
            Thanks everyone. You guys are alot of help.
            Signature

            {{ DiscussionBoard.errors[96238].message }}
  • Profile picture of the author Michael D
    I think I understand you correctly. Yes you can do that but you are going to have to find a theme that supports sub pages because a lot of themes won't show them correctly. All you do is write your main page "Animals". Then write a new page and under "Page Parent" select your original "Animals" page. Then the url will be yourdomain.com/animals/2ndpage.

    Hope that helps.
    {{ DiscussionBoard.errors[95131].message }}
Avatar of Unregistered

Trending Topics