• Resolved kmvan

    (@kmvan)


    Display only posts without passwords:

    $query = new WP_Query( array( ‘has_password’ => false ) );

    Display only posts with and without passwords:

    $query = new WP_Query( array( ‘has_password’ => null ) );

    ===============
    what’s the [with and without] mean?

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Display only posts with and without passwords] what's mean?’ is closed to new replies.