<?php
$args = array(
'post_type'=> 'post'
);
$the_query = new WP_Query( $args );
// The Loop
if ( $the_query->have_posts() ) {
while ( $the_query->have_posts() ) {
$the_query->the_post(); ?>
<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
<p><?php the_content(); ?></p>
<?php
}
}
?>
]]>
How are you using this code?
Personally, my first question is: what are you trying to achieve? I think this will help narrow down what could be the issue and we may able to provide a better answer as well.
]]>