I'm trying to get a page to find the posts in all categories and list them on this page:
As you can see the posts aren't aren't being looped and displayed.
The code below is located in the blog.php page which I've chosen for the page template. It's returning the else. Anyone know what I can do to get my posts to display here?
Thanks.
<?php
/*
Template Name: Blog
*/
?>
<?php get_header(); ?>
<div class="break_alpha"></div>
<div class="break-a"></div>
<div class="break-b"></div>
<div class="break_gamma"></div>
<!-- page separate -->
<div class="grid_10 alpha">
<?php
$in_news_cat = get_option("in_news_cat");
$wp_query = new WP_Query('cat=-'.get_cat_ID($in_news_cat).'&paged='.$paged);
?>
<?php if($wp_query->have_posts()) : while($wp_query->have_posts()) : $wp_query->the_post(); ?>
<div class="post" id="post_<?php the_ID(); ?>">
<h3>"><?php the_title(); ?></h3>
<?php if(has_post_thumbnail()) { ?>
<img class="img_wrp_c" src="<?php tt_img_url($post->ID, 580, 220); ?>" alt="<?php the_title(); ?>" />
<div class="break_alpha"></div>
<?php } ?>
<p><span class="button_basic"><?php the_time('jS F Y') ?></span> #comment-area"><?php comments_number('No Comments','1 Comment','% Comments'); ?></p>
<div class="entry">
<?php the_excerpt(); ?>
</div>
<p>">Read More</p>
</div>
<div class="break_gamma"></div>
<!-- .post -->
<?php endwhile; else : ?>
<div class="post">
<h3>Page Not Found</h3>
<p>Looks like the page you're looking for isn't here anymore. Try browsing the categories, archives, or using the search box below.</p>
</div> <!-- .post -->
<?php endif; ?>
<?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?>
</div>
<div class="grid_1">
</div>
<!-- end grid space -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>