I am using Content ABOVE the LOOP area to show some posts from certain categories only on the homepage.
I am using the following code to show 5 posts from category 3:
<?php query_posts('cat=3&showposts=5'); ?>
<?php while (have_posts()) : the_post(); ?>
<li><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></li>
It works perfectly but then the same output is shown IN THE LOOP as well.
I want IN THE LOOP to display all the rest of the categories (everything expect category with id 3).
This happens in spite of using the foll code at the end of Content ABOVE the LOOP
<?php if (is_home() || is_front_page())
query_posts($query_string . "&cat=-3");
I don't want to use plugins like Advanced Recent Posts though that solves my problem.
How do I do this in PHP coding - I am not good at it ?