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

Popular posts from this blog

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

php - render data via PDO::FETCH_FUNC vs loop -

The canvas has been tainted by cross-origin data in chrome only -