I am using taxonomy.php to fetch some rows from database. On taxonomy page the function get_queried_object() shows that I have got the right results from database but wordpress loop if ( have_posts() ) : while ( have_posts() ) : the_post();
is looping over all rows from database. Does have_posts() always iterates over all rows in database?
Edit :
query_posts("post_type=taxonomy_name&posts_per_page=6");
if (have_posts()) : while (have_posts()) : the_post();
Am i rewriting the query in query_posts()?
Edit :
if i remove the first line
query_posts("post_type=taxonomy_name&posts_per_page=6");
the loop is not printing any thing.