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

by dmderoeck 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):

Privacy Policy

But what I am getting is this:
-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
#main internet marketing discussion forum #children #display #easiest #pages #wordpress
Avatar of Unregistered
  • 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.

    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!

    WordPress not just for blogs anymore! Static Blogging... ***Great Job and Congratulations on one of the best WSO's I have ever bought...

    Come tweet with me... Stacie Bennett on Twitter

    {{ DiscussionBoard.errors[113645].message }}
    • Profile picture of the author dmderoeck

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


      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 }}
Avatar of Unregistered

Trending Topics