Loop is causing white screen
-
I’m havign some trouble with adding the loop to my page, it gives me a white screen.
This is the loop I am using:
<?php $my_query = new WP_Query("showposts=5&cat=18"); ?> <?php while ($my_query->have_posts()) : $my_query->the_post(); ?> <?php the_post_thumbnail(); ?> <a href="<?php the_permalink(); ?>"><H3><?php the_title(); ?></H3></a> <br><div class="wp-post-image">
If I remove the second line, the white screen doesn’t happen, but then it doesn’t work:
<?php while ($my_query->have_posts()) : $my_query->the_post(); ?>
Thanks
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Loop is causing white screen’ is closed to new replies.