WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Hiding Pages Under Parent Categories (6 posts)

  1. seahawk7
    Member
    Posted 5 years ago #

    Hello,

    I currently have 7 pages that appear under the 'pages' list on my blog's main page. For one of the pages (biographies) I would like to have several subpages that would be individual bios of people but I don't want these subpages to appear with a link under its parent page in the left sidebar.

    Is there a way to hide the subpage links in the left sidebar?

    I hope this is clear, website is http://www.losangelesbrass.com

    Many thanks,
    Justin

  2. MichaelH
    Member
    Posted 5 years ago #

    Look at using the depth=1 parameter with the template tag, wp_list_pages().

  3. seahawk7
    Member
    Posted 5 years ago #

    Thanks for the suggestion. I'm not too sure how to insert tags into code, but I'll look into it. It seems that wordpress should have something on the panel to make this really simple - such as a box you can click if you want to hide the subpage link from appearing under its parent page in the sidebar.

  4. MichaelH
    Member
    Posted 5 years ago #

    Well the Page Widget probably should have that setting but it doesn't so you could get Otto's PHP Code widget and put the code in that or put the code in your sidebar.php. There's asampe of wp_list_pages in WordPRess Default theme's wp-content/themes/default/sidebar.php file.

  5. buddha trance
    Member
    Posted 5 years ago #

    Take a look at the pageMash plugin.

    It's great. You can drag and drop the order of your pages, and "hide" some from output. It may be what you are looking for.

    I use it on my site to hide published pages that I don't want to be displayed on the main menu and sidebar list.

  6. seahawk7
    Member
    Posted 5 years ago #

    Thanks for the widget, exactly what I was looking for - beautiful.

Topic Closed

This topic has been closed to new replies.

About this Topic