Hide posts that have password set
-
Hi,
I’m starting to make use of password protected pages in WordPress and hoping to hide them from being displayed in my front end loops.
I’ve tried this after seeing somewhere I should be able to pass a has_password condition?
$params = array(
‘limit’ => 3,
‘orderby’ => ‘post_date DESC’,
‘has_password’ => false
);
$news = pods( ‘news’, $params );
while ( $news->fetch() ) {
<stuff here>
}Any guidance would be appreciated.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Hide posts that have password set’ is closed to new replies.