Use the function wp_reset_postdata()
after looping posts.I think this will solve your problem …
Note : if you use setup_postdata()
you do need to wp_reset_postdata()
afterwards.
Use the function wp_reset_postdata()
after looping posts.I think this will solve your problem …
Note : if you use setup_postdata()
you do need to wp_reset_postdata()
afterwards.