Ability to select Private Page as Parent

  1. Ipstenu (Mika Epstein)

    ajaxfan9 - You got caught as spam. We don't clean out this queue as often as others since there's a lower traffic (once a week vs a million times a day).

    Posted: 3 years ago #
  2. Guillem Santapau

    I'm joining this request :) +1

    Posted: 2 years ago #
  3. Tevya

    My +1 for this feature. Seems like a no-brainer, why limit private pages differently than public ones?

    Posted: 1 year ago #
  4. nyodulf



    Why is this theme territory?

    Posted: 1 year ago #
  5. Sorry, that should have said plugin territory. Except that's wrong too.

    It's being worked on, but in the meantime there are plugins.


    Posted: 1 year ago #
  6. chasman

    The CMS Tree View plugin is excellent and I use it all the time. However, the default WordPress behaviour is the problem. If you edit any child node of a private parent the child's parent is immediately set to (no parent) because the dropdown doesn't have it as a valid value.



    Posted: 1 year ago #
  7. salpilk

    From what I can tell this issue still has no solution - not even a plugin.

    I'm trying to add a new section to my WP and have it hidden to the public while various editors work on it.

    Is there another way to do this?

    I've used the functions.php code suggested here for now:

    * Show all parents, regardless of post status.
    * @param array $args Original get_pages() $args.
    * @return array $args Args set to also include posts with pending, draft, and private status.
    function my_slug_show_all_parents( $args ) {
    $args['post_status'] = array( 'publish', 'pending', 'draft', 'private' );
    return $args;
    add_filter( 'page_attributes_dropdown_pages_args', 'my_slug_show_all_parents' );
    add_filter( 'quick_edit_dropdown_pages_args', 'my_slug_show_all_parents' );

    Posted: 3 months ago #
  8. EBurden


    Two possible ways ot do waht you want.
    1. If it's all on one page just use a password protected page.

    or more likely, if there is more content simply don't link to it form the public section. So the editors actually need to type in the url to get to the page.


    Posted: 3 months ago #
  9. athenagold

    I found a solution that worked for me! Involves modifying the theme's functions.php file but this did the trick:


    Posted: 1 week ago #
  10. Just FYI - editing your theme directly is a bad idea if you ever want to update it.

    You should make that a plugin instead (or someone should...)

    Posted: 1 week ago #

RSS feed for this topic


You must log in to post.

  • Rating

    44 Votes
  • Status

    Good idea! We're working on it