• Hi… you know how when you create a “Page” it then shows up in your template using the following command?

    <?php wp_list_pages(‘title_li=’); ?>

    Is there a switch that will allow me to create a page, but for it to not show up in this list? In essence a valid page which could be referred to, but not in this list. (unlisted in effect)

    This would be useful for a number of purposes, but the main one would be for forms that I would want to refer to in listed pages, but don’t want these unlisted pages clutter up my menu.

    If this isn’t possible, I wonder if there is enough interest in something like this to request it in a future version? Please give me your comments.

Viewing 5 replies - 1 through 5 (of 5 total)
  • It’s always good to look around in the Codex first. All the template tags are documented quite well on this page:
    https://codex.www.ads-software.com/Template_Tags
    Specifically check out this:
    https://codex.www.ads-software.com/Template_Tags/wp_list_pages
    look for the parameters, e.g. “exclude” ??

    Thread Starter doc

    (@doc)

    I did and missed that. Thanks!

    Thread Starter doc

    (@doc)

    I checked this out and this will work. How does one submit a suggestion for future development? It would be nice to have an option on the write page that you could tick to keep out of page listings. This would save the editor from having to go to the code and adding another page to the exclude statement every time.

    You can always write a post to the Requests and Feedback section of the forum…
    However, I don’t think it would be possible what you just described. People are using the wp_list_pages tag in very different ways: for one user it is in the header.php file, for others in the sidebar.php file – so, how would you modify universally the generated code if you don’t even know where it will be used?
    (though I might be wrong, and it wouldn’t be the first time, LOL)

    Thread Starter doc

    (@doc)

    Good point. I guess what I am seeing the need for is options for pages like posts currently do. The codex makes this statement: “With the new Pages feature in 1.5, it’s easy to use WordPress for basic content management.”

    I totally agree and it opens up all sorts of possibilites. I would like to see options like:

    * Draft
    * Published
    * Unlisted
    * Private

    I’ll post something over in the “requests” section and see what sorts of responses I get! It could be I’m the only one in the WordPress world that would like to see this! ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Are Unlisted Pages possible in WordPress?’ is closed to new replies.