Forums

[resolved] How to hide wordpress page? (6 posts)

  1. ipunkbali
    Member
    Posted 2 years ago #

    I want hide only 1 page id=10

    this is my php code
    <?php wp_list_pages ('=depth=1&hide_empty=0&orderby=name&order=ASC&title_li='); ?>

    What should I change? thanks

  2. MichaelH
    Volunteer
    Posted 2 years ago #

    According to the template tag, wp_list_pages(), you would use the exclude=argument:

    <?php wp_list_pages ('exclude=10&depth=1&orderby=name&order=ASC&title_li='); ?>

    Note: delete hide_empty as that's not a valid argument with wp_list_pages.

  3. ipunkbali
    Member
    Posted 2 years ago #

    thank you!

  4. san
    Member
    Posted 1 year ago #

    where is this php code is located?
    i also need to hide a page.

  5. san
    Member
    Posted 1 year ago #

    where is this php code is located?
    i also need to hide a page.

  6. DanielFHC
    Member
    Posted 1 year ago #

    My particular code was in my header.php

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.