Is it necessary to reset the query after using get_posts()?

No. get_posts() does not modify global $wp_query variable and it doesn’t need to be cleaned up.

Note that if you further use setup_postdata() you do need to wp_reset_postdata() afterwards.

Leave a Comment

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