$posts
is a global var used by WordPress, change that to something unique and it’ll work as expected.
Also fyi, rewind_posts();
isn’t necessary here, you haven’t run the loop yet, so there’s nothing to rewind.
$posts
is a global var used by WordPress, change that to something unique and it’ll work as expected.
Also fyi, rewind_posts();
isn’t necessary here, you haven’t run the loop yet, so there’s nothing to rewind.