Got a little problem hopefully I can get some help. I noticed that after I added a "sort post by" code to my index my navigation broke. If you click on page two you still get the contents of page one. I did a little digging and found the problem, only thing is I not sure how to fix it. Here is the loop from my index page. Now I need to exclude a selected category from the main loop, that's the first part. The second part is if I add $orderby to the query_posts string (second to the last line) then the navigation breaks. If I remove it then it works. I tried to have to query_posts strings, but that didn't work out. Anyway to make this work or do I have to give up one for the other?
<?php $featcat = get_option($shortname.'_featured_category'); $category_id = get_cat_ID($featcat); $paged = (get_query_var('paged'))?get_query_var('paged'):1; $q = array(); $q['category__not_in'] = array($category_id); $q['paged'] = $paged; query_posts($q.$orderby); if (have_posts()) : while (have_posts()) : the_post(); ?>