3 Ways to Reset the WordPress Loop
WordPress Loop:
3 Ways to Reset the WordPress Loop:
wp_reset_postdata() -> best used after custom or multiple loops created with WP_Query
wp_reset_query() -> best used after a query_posts loop to reset a custom query
rewind_posts() -> best for re-using the same query on the same page
http://digwp.com/2011/09/3-ways-to-reset-the-wordpress-loop/

Post a Comment