Is there a problem with WP_Query( array( ‘author’ => 1 ) )?
-
Hi there,
I’m setting up a template the load authors posts but my problem is that the line:
$q = new WP_Query( array( 'author' => 1 ) );
throws a database error. for any other args ( i.e. ‘cat’ => 1 ) the query works.
I removed all other lines from my template, just leaving the above and it still throws the db error. I’ve checked the docs and google and it should work.
I’m thinking it’s either a bug or there a problem with my db?
Any suggestions?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Is there a problem with WP_Query( array( ‘author’ => 1 ) )?’ is closed to new replies.