Ok, i get that, that should work, but i am not that good at php :/
How would i query that inside the loop?
Here is my index.php:
<div id="content">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<div class="titleback">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
<div class="dateicon"><small><?php the_time('j F Y,') ?> <!-- av <?php the_author() ?> -->i kategorin <?php the_category(', ') ?></small></div>
</div>
<div class="entry">
<?php the_content('Read the rest of this entry »'); ?>
</div>
<p class="postmetadata">-<?php the_author() ?> |<!-- Posted in <?php the_category(', ') ?> | --><?php edit_post_link('Edit','',' '); ?> <!-- <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?> --><?php if(function_exists('wp_print')) { print_link(); } ?></p>
</div>
<?php endwhile; ?>
<div class="navigation">
<div class="alignleft"><?php next_posts_link('« Tidigare Nyhet') ?></div>
<div class="alignright"><?php previous_posts_link(' Nästa Nyhet »') ?></div>
</div>
<?php else : ?>
<h2 class="center">Not Found</h2>
<p class="center">Sorry, but you are looking for something that isn't here.</p>
<?php include (TEMPLATEPATH . "/searchform.php"); ?>
<?php endif; ?>
</div>
/cd