Am I using get_posts wrong?

get_posts() returns an array, not a WP_Query object. If you want to use have_posts() and related functions, use a “raw” WP_Query object.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)