I’ve got a site with a News page (archive for category ‘news’) and a separate Blog page. When I make a post for the News page I select the category ‘news’. So, on the news page you only see the posts marked news, but on the blog page you can see all posts. What I would like to do is preferably show all posts EXCEPT the ‘news’ posts on the blog page. How do I do this?
<!--post start-->
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<!--post start-->
<div class="post">
<div class="box">
<div class="postimgbox">
<?php if ((function_exists('has_post_thumbnail')) && (has_post_thumbnail())) { ?>
<?php the_post_thumbnail(); ?>
<?php } else {
}
?>
</div>
<ul class="post_meta">
<li class="post_date"> <?php echo get_the_time('M, d, Y') ?></li>
<li class="post_comment">
<?php comments_popup_link('No Comments.', '1 Comment.', '% Comments.'); ?>
</li>
<br />
<li class="posted_by">
<?php the_author_posts_link(); ?>
</li>
<br />
<li class="post_category">
<?php the_category(', '); ?>
</li>
<br />
</ul>
</div>
<div class="post_content">
<h1 class="post_title"><a href="https://wordpress.stackexchange.com/questions/106861/<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>">
<?php the_title(); ?>
</a></h1>
<?php the_excerpt(); ?>
<a class="read_more" href="https://wordpress.stackexchange.com/questions/106861/<?php the_permalink() ?>"><?php _e('Read More', 'infoway'); ?> <span class="button-tip"></span></a> </div>
</div>
<!--End Post-->
Above is the code from blog.php, the php file I am trying to edit as it is the template for my blog page, (if it helps)