php - exclude certain tags in wp_query and output 20 -
what wrong code:
<?php $the_query = new wp_query( array( 'tag__not_in' => array( 8,9,10 ) ), 'posts_per_page' => 20 ); ?>
i have tried , tried cant work
posts per page outside array , being used second parameter wp_query.
change this:
<?php $the_query = new wp_query( array( 'tag__not_in' => array( 8,9,10 ) ), 'posts_per_page' => 20 ); ?>
to:
<?php $the_query = new wp_query( array( 'tag__not_in' => array( 8,9,10 ), 'posts_per_page' => 20 ) ); ?>
Comments
Post a Comment