Created
March 24, 2022 06:43
-
-
Save carlaizumibamford/64f6ff12e053321b615752744c29e15d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Display published and private posts, if the user has the appropriate capability: | |
$args = array( | |
'post_status' => array( 'publish', 'private' ), | |
'perm' => 'readable', | |
); | |
$query = new WP_Query( $args ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment