OK, been through the loop codex and now even more confused. I have placed this just for test:
<!– The following tests if the current post is in category 3. –>
<!– If it is, the div box is given the CSS class “post-cat-three”. –>
<!– Otherwise, the div box will be given the CSS class “post”. –>
<?php if ( in_category(‘1’) ) { ?>
<div class=”post-cat-one”>
<?php } else { ?>
<div class=”post”>
<?php } ?>
between this:
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
and ends here:
<?php endwhile; else: ?>
<?php _e(‘Sorry, no posts matched your criteria.’); ?>
<?php endif; ?>
and nothing shows. I made a post (the text i want to show on the page) and filed it under uncategorized (hence the <?php if ( in_category(‘1’) ) { ?>
<div class=”post-cat-one”>)
Can anyone help a little more?
Confused,
Chris