WordPress.org

Ideas

Ability to select Private Page as Parent

  1. Ipstenu (Mika Epstein)
    Inactive

    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
    Inactive

    I'm joining this request :) +1

    Posted: 2 years ago #
  3. Tevya
    Inactive

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

    Posted: 1 year ago #
  4. nyodulf
    Member

    12345

    +1

    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.

    https://core.trac.wordpress.org/ticket/8592

    Posted: 1 year ago #
  6. chasman
    Inactive

    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.

    https://www.evernote.com/l/AAKqUUp2m7VNPq-_J12EOVOc2lUePXs6eVYB/image.png

    https://www.evernote.com/l/AAICIX9olOVKw7_LiloqWiyMwV5VyB1QlCYB/image.png

    Posted: 1 year ago #
  7. salpilk
    Member

    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:
    https://www.mightyminnow.com/2014/09/include-privatedraft-pages-in-parent-dropdowns/

    /**
    * 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
    Member

    Salpik,

    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.

    ernie

    Posted: 3 months ago #
  9. athenagold
    Member

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

    https://www.mightyminnow.com/2014/09/include-privatedraft-pages-in-parent-dropdowns/

    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

Reply

You must log in to post.

  • Rating

    12345
    44 Votes
  • Status

    Good idea! We're working on it