• Resolved larkinsoft

    (@larkinsoft)


    I need to create static Pages that DO NOT appear in the menu but can be accessed directly by its URL without password.

    For example, I have 4-5 pages already on my menu, no problem. But I also want some static pages that others can access from emails, which are not officially posted on the site, but have the same look and feel as any other static page.

    Right now, my options are:

    1. Public – shows up on menu.
    2. Protected – password protected, and shows up on menu.
    3. Private – does not show up on menu, but cannot be accessed from an outside link.

    What I want is a “Public” page that does NOT show up on the menu, but has a URL like any other page.

    Help!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi larkinsoft, this is fortunately quite easy to do. All that is required is for you to find the code that is displaying your list of pages and then add in an exclude term and set the IDs of the pages that you don’t want to be displayed.

    Typically you should look for the wp_list_pages() code somewhere inside of header.php. To exclude a particular page, you have to add in the following piece of code…

    wp_list_pages(‘exclude=2,5,19’)

    The numbers separated by commas are IDs of the pages that you don’t want to show up in your list but will still be accessible by visiting the direct link and won’t require any special password.

    You can find the ID of the page by visiting the list of pages in your Dashboard, hovering over the titles and recording the number at the end of the URL that shows up in the status bar. So if you look at the above code that I posted, the pages with IDs of 2, 5 and 19 wouldn’t show up in the list menu but would still be completely accessible to everybody else.

    For more info be sure to check out https://wpthemesupport.com/how-to-hide-a-page-or-category-link-in-wordpress where it goes a bit more into detail in case you didn’t understand what I said here.

    Thread Starter larkinsoft

    (@larkinsoft)

    Thanks a million Jarret – I appreciate it!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Non-menu, non-private Static Pages’ is closed to new replies.