WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How to make a hidden page (5 posts)

  1. paytontx12
    Member
    Posted 4 years ago #

    I want to make a page on my blog that can only be accessed by a direct link.

    I have a PayPal donation button on the blog. When someone makes a donation, I would like to direct them to a page with some special downloads, but not have this page accessible without that link.

    Is this possible??

  2. esmi
    Forum Moderator
    Posted 4 years ago #

    Yes - simply exclude the page from any menus and any search results.

  3. paytontx12
    Member
    Posted 4 years ago #

    Thanks for the reply

    Ok, so don't include the page in the header menu. Got that.

    How do you exclude something from a search result??

  4. esmi
    Forum Moderator
    Posted 4 years ago #

    Via your theme's search.php file. Something like:

    <?php if (have_posts()) : while (have_posts()) : the_post();
    if( is_page(array(42,'about-me','About Me And Joe')) continue;

    should work.

    http://codex.wordpress.org/Conditional_Tags#A_PAGE_Page

  5. paytontx12
    Member
    Posted 4 years ago #

    Ended up using a Plug-In - Simply Exclude. Works well.

Topic Closed

This topic has been closed to new replies.

About this Topic