cat=x string in post query causes frontpage to go blank!!
-
I just upgraded to 2.7 from 2.6.5 and cannot load the index because of the cat=1 string in this code.
<?php query_posts(‘cat=1&showposts=2’); ?>
The frontpage is just blank. no errors or anything. Other pages work because it does not have the query. When I remove cat=1, the frontpage loads fine but I need to exclude every other category except cat 1 on the frontpage.
I’ve tried deactivating all plugins but the problem still exist.
Anyway to fix this?
Thanks.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘cat=x string in post query causes frontpage to go blank!!’ is closed to new replies.