• Hello

    I was curious if there is a way after I create a new page, to hide certain pages from being in the generated list of pages that appears in my sidebar?

    Also, while I am here I have another question. The list of links that I create in my control panel also generates a list in the sidebar with a <h2> heading I want to change it to an <h3> but am unsure how to do it. All the other generated lists in the sidebar have visible <h2> tags to change but the links list does not.

    Here is the code in question: (i think)
    <?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?>
    <?php get_links_list('id'); ?>

    Thanks to anyone whom can solve my issues 🙂

Viewing 14 replies - 1 through 14 (of 14 total)
  • See here for where the h2 is coming from. Most people have wanted it gone, since it was added anew in 1.5, but you could just change it to h3 instead of deleting it.

    http://wordpress.org/support/topic.php?id=24245

    to exclude pages:
    <?php wp_list_pages(‘title_li=my pages&exclude=##’); ?>

    where ## is the ID of the page you don’t want shown in the list

    and my pages would be whatever you want the heading to be

    Thread Starter johnnygulag

    (@johnnygulag)

    Man I really appreciate that, especially so fast I looked and looked for those tags but did not find them til now.

    Thanks again

    PS
    Anyone else know if it is possible to hide certain pages from being in the pages list?

    Thread Starter johnnygulag

    (@johnnygulag)

    Wow

    This forum is a happening place.

    to exclude pages:
    <?php wp_list_pages(‘title_li=my pages&exclude=##’); ?>

    where ## is the ID of the page you don’t want shown in the list

    and my pages would be whatever you want the heading to be

    Thanks you have solved my issuse I believe, though it may take a bit more looking at than my other issue.

    Thanks to you both for the assistance 🙂

    Later
    Ben aka Johnny

    Thread Starter johnnygulag

    (@johnnygulag)

    Hello

    I do have one more questtion about this code:

    <?php wp_list_pages('title_li=my pages&exclude=##'); ?>

    Where the ## is am I placiing the page numbers inside the #6# ornext to the #6 or in place of the # (ie: just a 6) and how do I seperate more than 1 page?

    Thanks Again

    Just put the 6 and use a comma between multiples, so like

    <?php wp_list_pages(‘title_li=my pages&exclude=6,12’); ?>

    Thread Starter johnnygulag

    (@johnnygulag)

    Hello

    Thanks you are awesome !!!!

    Thread Starter johnnygulag

    (@johnnygulag)

    Hello

    Ok I have another question,(maybe a dumb one) what is the page ID?

    <?php wp_list_pages(‘title_li=my pages&exclude=what am I’); ?>

    I was thinking of the page order number you assign as you create a page, but apparantly that is not it.

    Thread Starter johnnygulag

    (@johnnygulag)

    Duh, I just found it.

    Thanks anyway 🙂

    The script works, but messes around with my design, for no obvious reason.

    Normal code works fine:
    <?php wp_list_pages('sort_column=menu_order&title_li=<h4>
    ' . __('pages') . '</h4>' ); ?>

    If I put this in, the graphics of my submenues get screwed. Does anyone have a clue, why?
    <?php wp_list_pages('sort_column=menu_order&title_li=<h4>
    ' . __('pages&exclude=37') . '</h4>' ); ?>

    Anybody an idea?
    If I use this code, my submenues “grow” some px ..

    hi – just to add to the discussion:

    my solution for hiding pages if you want to have them temporarily of, is to make a page called ‘hidden’ and put it in the exclude list. Than if I want a page to be off for some reason, I just make it a subpage of the ‘hidden’ page…

    Just make sure you have it excluded in all your listings 😉

    Cheers,

    Wubbonius

    Hello.

    I understand the code that needs to be used to hide pages….but where do you put the Code?

    Within which file?

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Is there a way to hide certain “pages” from being in the list of pages’ is closed to new replies.