I've been puzzling over this one for two days. Still can't figure it out.
I'm testing a theme release in multiple versions of WordPress using xampplite on localhost on a PC.
I'm having a problem on WP 2.9.2 that does not occur on any other newer installations of WP.
Take a look at the query below. As long as I leave the commented line in place, it works fine. However, when I uncomment the line, it crashes my xampplite Apache server. WTF?
$the_query = new WP_Query(array(
'posts_per_page' => 5,
'offset' => 0,
'order' => 'ASC',
'post__not_in' => get_option("sticky_posts"),
// 'cat' => get_cat_ID('top-menu'),
));
print "<p>header.php";exit;
I've even tried to hard code the cat attribute to a static number:
'cat' => 3
It still crashes!
Is this a problem with the code, wordpress 2.9.2 or with my Xamplite setup? Seems odd that it works in all newer other versions of WP I've got set up on this same box.
