ok i did it now with the category thing.with this tutorial works almost fine expect of:
now i have two loops. before the first loop iam asking just to show a certain categorie and on the second loop i also ask just to show another categorie. it works but when i enter the second query my comments vanishes…
doesnt make any sense to me. any clues?
first query and loop on index site:
<?php query_posts('cat=3&showposts=10'); ?> //CATEGORY QUERY
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<!-- thumbnail wrapper -->
<div class="thumb main">
<!-- 235150image-covers -->
<?php $image = get_post_meta($post->ID, 'thumbnail', true); ?>
<a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><img src="<?php echo $image; ?>" alt="" /></a>
<!-- 235150image end -->
<!-- thumbanil title -->
<div class="thumb-title">
<h2><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title() ?>
<?php comments_number('{0}', '{1}', '{%}' );?></a></h2>
</div>
<!-- thumbanil title end -->
</div>
</div>
<?php endwhile; ?>
<?php else : ?>
<div class="post single">
<h2>No matching results</h2>
<div class="entry">
<p>You seem to have found a mis-linked page or search query with no associated or related results.</p>
</div>
</div>
<?php endif; ?>
second query and loop on right collumm site:
<?php query_posts('cat=3&showposts=10'); ?>//CATEGORY QUERY
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<div class="Newsmain">
<div class="NewsTitle"><h5><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title() ?></div><div class="postMeta"><span class="comments"><a href="#comments"><?php comments_number('No comments', '1 comment', '% comments' );?></a></span><span class="date"> // <?php the_time('M jS, Y') ?> // <?php the_category(', ') ?></span></div></div></div>
<?php endwhile; ?>
<?php else : ?>
<div class="post single">
<h2>No matching results</h2>
<div class="entry">
<p>You seem to have found a mis-linked page or search query with no associated or related results.</p>
</div>
</div>
<?php endif; ?>