• kerosene

    (@kerosene)


    Anyone know how I can have a page NOT show up in the “pages” list in my sidebar. I have a page I don’t want listed in the sidebar.

Viewing 6 replies - 1 through 6 (of 6 total)
  • silkjaer

    (@silkjaer)

    wp_list_pages('exclude=ID');

    prjg

    (@iiiiiiiv)

    Silly question, but where would one put that? sidebar.php?

    silkjaer

    (@silkjaer)

    where your pages are shown <?php wp_list_pages(''); ?> should be – probably in the sidebar.php – add exclude=PAGEID in the ('')

    Thread Starter kerosene

    (@kerosene)

    Silkjaer – that works perfectly…

    But how can I merge it with
    <?php wp_list_pages(‘title_li=<h2>Pages</h2>’ ); ?>

    silkjaer

    (@silkjaer)

    <?php wp_list_pages('title_li=<h2>Pages</h2>&exclude=ID' ); ?>

    Thread Starter kerosene

    (@kerosene)

    I was just about to post the answer to my own question ??

    Thanks Silkjaer.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Hide a page from my sidebar’ is closed to new replies.