Fatal error: Call to undefined function: have_posts() in /home/vxlabs/public_html/staff/wp-content/themes/default/news.php on line 1
I'm wondering If anyone knows the file that contains that function as I do not know. I've looked through all the files and can't find it.
heres the php code for news.php
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="chead" id="post-<?php the_ID(); ?>">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
<small><?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --></small>
<div class="cbody">
<?php the_content('Read the rest of this entry »'); ?>
</div>
<p>Filed under <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?> <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></p>
</div>
<?php endwhile; ?>
<?php else : ?>
<div class="chead">
<h2>Not Found</h2>
</div>
<div class="cbody">
<p>Sorry, but you are looking for something that isn't here.</p>
</div>
<div class="cfoot"> </div>
<?php endif; ?>
Edited by zetsumei, 22 January 2007 - 07:35 PM.
