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.
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.