WordPress.org

Forums

Hide Page (2 posts)

  1. slvhobbs
    Member
    Posted 8 years ago #

    I'm trying to hide a page (ID84) from my sidebar. I replaced this code:
    <?php wp_list_pages('title_li=<h2>' . __('Pages') . '</h2>' ); ?>

    with this:
    <?php wp_list_pages('exclude=8&title_li=<h2>' . __('Pages') . '</h2>' ); ?>

    but the page still apprears. Is there something else I should be doing?

  2. Chris_K
    Member
    Posted 8 years ago #

    Is that a typo? You mention first that it is ID 84. Your exclude is 8.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.