Exclude password protected posts from wordpress page?

You can make it happen with a post_where filter, just before you execute your query.

You can make it happen with a post_where filter, just before you execute your query: function getPosts(){ add_filter('posts_where', 'excludePassworded'); $pq = new WP_Query(array('post_type' => $ptype, 'showposts' => $pshow )); // iterate over returned posts and do fancy stuff } function excludePassworded($where) { $where . = " AND post_password = '' "; return $where; }.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions