• Resolved seahawk7

    (@seahawk7)


    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 https://www.losangelesbrass.com

    Many thanks,
    Justin

Viewing 5 replies - 1 through 5 (of 5 total)
  • MichaelH

    (@michaelh)

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

    Thread Starter seahawk7

    (@seahawk7)

    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.

    MichaelH

    (@michaelh)

    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.

    buddha-trance

    (@buddha-trance)

    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.

    Thread Starter seahawk7

    (@seahawk7)

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Hiding Pages Under Parent Categories’ is closed to new replies.