• Hi!
    I installed WordPress a few days ago, now I have a little problem.
    I created a FAQ Page and when I create subpages of the FAQ Page then they are visible in the “Pages”-Box at the main page. I want to hide these links to the subpages because when I add more it will be a long list.
    Please help me.
    I use the Ocadia-Theme.

    baddi
    https://baddi.cwsurf.de/other/word/index.php

Viewing 8 replies - 1 through 8 (of 8 total)
  • Assuming you might be using the Template Tag wp_list_pages then just add the parameter: depth=1.

    ********************
    Welcome to the WordPress Support Forums!

    Please help keep the Forums successful by reading:
    Using the Support Forums

    Also, remember the WordPress Codex and the FAQ pages.

    And, thank you, for letting us know if this information proves useful (or not)!
    ********************

    Thread Starter baddi

    (@baddi)

    ok, I used:
    wp_list_pages(‘title_li=<h2>’ . __(‘Pages’) . ‘</h2>’, ‘depth=1’ );
    but nothing happend

    baddi

    Try this:
    wp_list_pages('depth=1&title_li=<h2>' . __('Pages') . '</h2>' );

    Parameters have to be in one string separated by the & character.

    Please see:
    Template_Tags/wp_list_pages

    Thread Starter baddi

    (@baddi)

    OK, it works, thank you

    baddi

    mattkapp

    (@mattkapp)

    Thanks for the great tip. Worked for me as well. One question though. I’d like for the sub-pages to be hidden on the main (blog) page….but when I click the link for the page in which the sub-pages are kept I would like for them to appear in the sidebar then.

    Is there any way to enable this??

    Thanks
    matt

    moshu

    (@moshu)

    If you Google (as diescribed in the sticky post on the frontpage of the forum) for e.g. “show/display children pages in menu” and similar keywords… you may come up with something like this:
    https://www.ads-software.com/support/topic/57985?replies=6

    mattkapp

    (@mattkapp)

    Sorry about double posting. I had done a search from inside www.ads-software.com and didn’t find anything regarding the topic. Thanks for link, and again….sorry!

    I am have no php skill at all but some css and html.
    I am using the Default theme and want to hide subpages. I tried the suggestion here and it destroyed the css on some pages and the sidebar disappeared. the support page above is way over my head. Is there an easy way to hide the children?

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘How can I hide subpages?’ is closed to new replies.