I need some posts excludes from displaying in wp_query in some conditons. I use below code to do it, and the code works correctly, but I set the posts_per_page
to 12
and by this code the skiped posts are counted , for example instead of 12
post in each page it has different post numbers (10,2,5 , ...)
while( $query->have_posts() ){
$query->the_post();
if(condition)
{
//Show the post
}
}
$course_options
? Islevel
a meta_key?