• Resolved prim3r

    (@prim3r)


    Hi.
    Im using a gallery plug in that automaticly does sub-pages.

    The problem is, that i dont want it to be shown on the blog…

    im hoping that all i need to do is to edit this line ( INSTED OF EDITING THE PLUG IN, cause i dont think the problem is there… :

    <?php wp_list_pages(‘title_li=’); ?>

    is so , what do i have to put insted of this?

    Thanks in advance for your help.

Viewing 4 replies - 1 through 4 (of 4 total)
  • As you can see here, you can exclude certain pages by passing there ids to wp_list_pages like so:

    wp_list_pages('exclude=17,38&title_li=');

    So the above would excludes pages of ids 17 and 38.

    Thread Starter prim3r

    (@prim3r)

    nice one.
    Guess i didnt search that well … ??

    Thank you ??

    That’s okay. I apparently can’t spell well. “There” should be “their.”

    thanks for this post I was just about to ask the same question ??

    note if you make an empty page called it “Exclude” and make all the pages that you want to be excluded childs of it you only have to hide the Exclude page and all its children will be hidden so you don’t have to keep editing your file to add new pages

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Remove sub-pages’ is closed to new replies.