WordPress.org

Ready to get started?Download WordPress

Forums

Hiding Pages (18 posts)

  1. temp
    Member
    Posted 8 years ago #

    Hello.

    What I want to do is, create a X number of pages, but I dont whant them to be displayed with all the other pages.

    In fact, I dont want them to be displayed at all.

    I am using the Pool plugin.

    You can check out the site, here:

    http://www.CTU-Portugal.com

    See the text on the downloads category?

    I want to create a link to a page with that text (OST, Videos, Sons, etc...) But I dont want it displayed anywhere else.

    Thanks all!

  2. moshu
    Member
    Posted 8 years ago #

    1. Next time type a complete link (starting with http:// ) so those who want to help don't have to copy, paste your address.
    2. Pages are displayed by Template_Tags/wp_list_pages - delete that template tag if you don't want the Pages to be displayed.
    3. Whatever you want to put in the sidebar > open the sidebar.php and edit it in a plain text editor.

  3. temp
    Member
    Posted 8 years ago #

    Thanks. Can you explain a little bit more?

    Im not too good with editing .PHPs.

    P.S: Sorry for the bad link! :S

  4. moshu
    Member
    Posted 8 years ago #

    OK, back to the basics.
    1. The "downloads" on your blog is not a category. Your real blogpost categories are
    CTU Portugal
    Personagens
    2. Obviously those
    OST
    Videos
    Sons
    Outros - are not links to Pages. When you say "pages" are we talking about the Pages feature of WP or something else, like usual webpages? Who put those words into your sidebar?

  5. temp
    Member
    Posted 8 years ago #

    No .. I want to link the OST, Videos, Sons and Outros to pages (WP Pages).

    I just dont want those same Pages, displayed on the Header like all the other pages are.

    Hope I made myself clear.

    Thanks

  6. moshu
    Member
    Posted 8 years ago #

    It's the first time you mention the header :)
    OK, then back to my first reply. The template tag I linked to in the Codex (BTW, did you read it all before asking your next question??? - because the answer is already there) has an "exclude" parameter. Use it.
    In your header there must be a code
    <?php wp_list_pages(); ?>

    make it like
    <?php wp_list_pages('exclude=XX,YY'); ?>
    where XX and YY would be the page_id for the Pages you don't want to show.

  7. temp
    Member
    Posted 8 years ago #

    Ok! Ill give that a try and Ill let you know in 5 or 6 minutes.

    Thank you VERY MUCH!

  8. temp
    Member
    Posted 8 years ago #

    WORKS! :D

    Just one thing ... I get this text "Pages"

    On the black.

    http://www.ctu-portugal.com

    Its still there. Check it out if you can

    Thank you very much again!

  9. temp
    Member
    Posted 8 years ago #

    I meant .. On the back! :D Sorry!

  10. moshu
    Member
    Posted 8 years ago #

    Make it:
    <?php wp_list_pages('exclude=XX,XX&title_li='); ?>

  11. temp
    Member
    Posted 8 years ago #

    That fixed it!

    Thank you very much!! Really... Thank you!!

  12. temp
    Member
    Posted 8 years ago #

    Douhhh!!!

    One more thing:

    How can I have them ordered by menu order and still excluding?

    Its working now, but the order of the pages on the header aint right (I want it to be ordered by the menu number)

    Sorry and thank you!!

  13. moshu
    Member
    Posted 8 years ago #

    You never visited the Codex page I linked, LOL...
    Template_Tags/wp_list_pages#List_Pages_by_Menu_Order
    then go into the Manage Pages > Edit and in the Page Options (below the text input area) define the order numbers.

  14. temp
    Member
    Posted 8 years ago #

    I have. I promisse. What I dont know, is how to combine both!

    Excluding and Ordering by Menu Order.

  15. moshu
    Member
    Posted 8 years ago #

    It's always the same, using &
    ('exclude=xx,xx&sort_column=menu_order&title_li=')

  16. temp
    Member
    Posted 8 years ago #

    LOL. Done ... But trust me ...

    It may sound easy to you ... But it aint! :P :P

    Thank you very much! Everything working perfectly now!

  17. moshu
    Member
    Posted 8 years ago #

    Glad it worked. And believe me - I copied all this stuff from the Codex page, you just need a little bit a reading.

    [I am old, which means I grew up in the Gutenberg Galaxis, so for us reading was a given. The younger generations seem to be unaware of the fact that you can aquire information by reading ;) ]

  18. temp
    Member
    Posted 8 years ago #

    Lolol. Ill be more carefull next time! :D

Topic Closed

This topic has been closed to new replies.

About this Topic