WordPress.org

Ready to get started?Download WordPress

Forums

Hiding specific pages (14 posts)

  1. jayjay
    Member
    Posted 9 years ago #

    Hello. Could someone tell me how to hide certian pages? For instance, the page one would see after submitting feedback using a contact form.

  2. Rob Poitras
    Member
    Posted 9 years ago #

    hrm, I dont understand what you are asking.

    hide pages you have created or just the page after a comment is submitted?

  3. jayjay
    Member
    Posted 9 years ago #

    Pages I have created.

  4. Michael Adams (mdawaffe)
    Member
    Posted 9 years ago #

    Hide in what sense? If you mean you don't want them listed on your site then you'll need to use this example from Codex's description of the wp_list_pages tag.

    As an aside: I help work on Codex and am curious. Did you look there for an answer and not find one, or did you not look at Codex? I don't mean to sound like a jerk. I'm honestly just curious - wanting to make Codex a better resource and all.

  5. jayjay
    Member
    Posted 9 years ago #

    I did look and searched the codex, but did not find it. I first looked under pages and found nothing then searched 'hiding pages' and 'hidden pages' and didn't get any results.

    Thanks for your help.

  6. Michael Adams (mdawaffe)
    Member
    Posted 9 years ago #

    Thank you for the information.

  7. Michael Adams (mdawaffe)
    Member
    Posted 9 years ago #

    I've updated the Listing Your Pages on Your Site section of Codex's Pages article. Hopefully this information is now easier to find.

  8. TechGnome
    Moderator
    Posted 9 years ago #

    I'm still confused as to what was being requested.... and was that the answer? Or what?

    Tg

  9. Michael Adams (mdawaffe)
    Member
    Posted 9 years ago #

    http://codex.wordpress.org/Template_Tags/wp_list_pages

    jayjay wanted to prevent one of his pages from being listed in the sidebar under the "Pages" section. This is accomplished using the 'exclude' parameter of wp_list_pages().

    At least, that's how I interpreted the question, and it's definitely the answer I gave.

  10. Sparky
    Member
    Posted 9 years ago #

    is it possible to combine 2 tags in <?php wp_list_pages(); ?> ?

    i wanna exclude 8 and not have a header to show up, so how do i combine those 2 into that?

  11. moshu
    Member
    Posted 9 years ago #

    Sparky, why don't click on the link provided by mdawaffe?

  12. Sparky
    Member
    Posted 9 years ago #

    i did, but it didn't say anything about combining tags.

  13. moshu
    Member
    Posted 9 years ago #

    All of the examples are "combining tags".

  14. Sparky
    Member
    Posted 9 years ago #

    ok, i get it now. thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.