I’m having trouble with this, and have searched the Forum for about an hour. I see many ‘similar’ issues, but not this one in particular. I think my problem stems from the use of the array here (but, obviously, I’m not sure).
I have this line of code in home.php
<?php query_posts( array( 'post__not_in' => get_option( 'sticky_posts' ), 'paged' => get_query_var( 'paged' ) ) ); ?>
I want to exclude the category with the ID ’10’
How do I edit that query_post line to accomplish this?
- The topic ‘Exclude category from query_posts’ is closed to new replies.