I'm having a dozy of a time on this one and have finally had to break down and ask my first question. Usually I can find an answer on here, but this time I need some help. I'm trying to exclude a category from the main loop so that it does not show up twice on my index page. I have searched up and down and came across this code here:
<?php $category_id = get_cat_ID('featured'); $q = 'cat=' . $category_id; query_posts($q); if (have_posts()) : while (have_posts()) : the_post(); the_content(); endwhile; endif;?>
It worked, but then my page navigation didn't work. Even if you clicked on page 2 you still got page one content. Not sure why that happened. I don't want to exclude the category with the ID because the ID will change, but the name will always be the same.
Any help on this would be great, Thanks! If you need the demo site then just ask.