Wordpress - what's the easiest way to not display children pages?

4 replies
For some reason, I cannot get children of a page to NOT display in my navigation panel.

What I want to do is this (example):

About
Articles
Privacy Policy
etc.

But what I am getting is this:
About
Articles
-How to jump onto a moving train
-How to grow roses
Privacy Policy

I do not want to display - How to jump...

I tried modifying Sidebar.php to no avail.

Is there something easy I'm missing???

Any help is appreciated
#children #display #easiest #pages #wordpress
  • Profile picture of the author Bishop81
    Have you tried going into the widgets area where you define the sidebar and clicking "Edit" on the box that says "Pages"? There are some options in there that you can check. I'm not looking at WP right now, but I'll check it out and post back.

    What version of WP are you using?

    After looking, it appears you can only set it to exclude pages based on their page id. If you can get the id's of the pages that you don't want displayed, then you can list them all in there.

    There are other ways, but they involve getting into the code. When wordpress calls the list_pages (or whatever it is) then it passes a lot of default arguments. Usually in there you have an option of showing child pages or whatever. If not, then you may need to get into the classes.php file and edit the sql. It can be done, but it all depends on your level of knowledge.
    Signature

    I'm tired of my signature... Deleted.

    {{ DiscussionBoard.errors[113641].message }}
  • Profile picture of the author Stacie Bennett
    This can be accomplished with one of the various navigation widgets available. The one I use is Flexi Pages. It allows you to show only what you want in your navigation. Very easy to use.

    Hope this helps!
    {{ DiscussionBoard.errors[113645].message }}
    • Profile picture of the author dmderoeck
      Staci,

      This plugin works brilliantly! That was exactly what I was looking for, thanks!!!

      Bishop81,

      Thanks for your help as well. I forgot to mention I have been struggling with your suggestion. I had tried to modify the wp_list_pages parm for about 2 hours and finally gave up. I think it is related to the actual theme.
      {{ DiscussionBoard.errors[113707].message }}
      • Profile picture of the author Stacie Bennett
        I'm so glad it worked for what you needed! You're Welcome!
        {{ DiscussionBoard.errors[113724].message }}

Trending Topics