I have an Index.php with a basic loop with this query before:
<?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $args = array( 'category_name' => 'work', 'orderby' => 'asc', 'paged' => $paged ); query_posts($args); ?>
Which works. But when I count the amount of pages using max_num_pages it says there are 5 pages worth of posts in the 'category_name' => 'work' but I know that there are not and whats happening is its including the other posts outside of this category.
How do I stop that from happening and get the loop to just display the actual amount of pages containing posts categorised with 'work' only?