wp_query not working in 2.0?
-
I’ve built my index page with four seperate loops, with posts from each category showing up somewhere else. I’ve used the wp_query thing. I just upgraded to 2.0, and this doesn’t seem to work anymore. Everything else works fine. What have I done wrong?
<?php
$query_background = $category_name=.$background_title.&showposts=5";
$my_query = new WP_Query($query_background);
while ($my_query->have_posts()) : $my_query->the_post();
if( $post->ID == $voorpaginapost) continue;
?><h2><a href="<?php the_permalink() ?>" title="<?php echo($permalink_title)?><?php the_title(); ?>">
<?php the_title(); ?>
</a></h2><?php the_content($readmore); ?>
<div class="aboutline"><?php the_time('l j F Y') ?> | <?php the_time('G:i')?>
</div>
<?php endwhile; ?>
- The topic ‘wp_query not working in 2.0?’ is closed to new replies.