Dont show "uncategorized" posts
-
I’ve made a template where i want to show all posts from a certain category. And it actually works fine, however for some reason it also shows the posts from the “uncategorized” category, which i find very odd, since i specifically pointed out the category name in my code.
Heres my code:
<?php /* Template Name: Konkurrencer */ get_header(); ?> <div id="container"> <div id="content" role="main"> <?php get_template_part( 'loop', 'page' ); ?> <?php $temp_query = $wp_query; ?> <?php query_posts('Konkurrencer=&showposts=5'); ?> <?php while (have_posts()) : the_post(); ?> <div id="post-<?php the_ID(); ?>"> <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2> <div class="entry-summary"> <?php the_excerpt(); ?> </div> <a href="<?php the_permalink(); ?>" class="read-more">Deltag i konkurrencen<span class="more-arrow">»</span></a> </div> <?php endwhile; ?> </div><!-- #content --> </div><!-- #container --> <?php /* get_sidebar(); */ ?> <?php get_footer(); ?>
Hope someone can guide me
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Dont show "uncategorized" posts’ is closed to new replies.