Upgraded to 2.5.1, have_posts() stopped working.
-
I upgraded to 2.5.1 this morning. The upgrade went smoothly; my admin panel works fine; everything appears to be in order behind the scenes.
However, on the blog itself, the entries have stopped appearing.
Here is the code I was using for one of my blog columns:
—
if ( have_posts() )
{
while ( have_posts() )
{
the_post(); // grabs current post info so it can be folded, spindled and mutilated
if (in_category('6')) // if the post is in category 6 (external), continue:
{
/* assorted output functions here. */
}
}
}
—
I have tried to troubleshoot and the code never makes it past the first line. have_posts() apparently no longer exists.
I have also:
– checked to make sure the post statuses are still ‘published’.
– published new posts to see if it was an issue of old/timed-out posts.
– made sure my plugins are all updated as well; as I said, my admin panel is working just fine.
– checked the documentation; the function reference makes only a passing mention of have_posts() and the documentation for “The Loop” apparently hasn’t been updated since v1.5.Thank you in advance for any assistance.
–k.
- The topic ‘Upgraded to 2.5.1, have_posts() stopped working.’ is closed to new replies.