[wp-trac] [WordPress Trac] #8592: Private Pages not listed in the Parent dropdown
WordPress Trac
wp-trac at lists.automattic.com
Thu Jul 7 22:19:35 UTC 2011
#8592: Private Pages not listed in the Parent dropdown
-------------------------------------+-----------------------------
Reporter: mtdewvirus | Owner: nacin
Type: feature request | Status: reviewing
Priority: normal | Milestone: Future Release
Component: Administration | Version: 2.7
Severity: major | Resolution:
Keywords: has-patch needs-refresh |
-------------------------------------+-----------------------------
Comment (by sillybean):
Replying to [comment:119 vinceger]:
I'm sure my old patch is too outdated to work anymore. The newer patches
do work (turned out to be some weird glitch in the 3.1.3 site I was
talking about), but not in the same way. You have to be explicit about
which statuses you want in your loops. For example, I have this in several
page templates where I need the private pages to appear:
{{{
<?php
global $wp_query;
query_posts( array_merge( array( 'post_status' => 'publish,private' ),
$wp_query->query ) );
?>
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/8592#comment:122>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list