Near the top of your code, you have wp_reset_postdata();
.
As explained in the Functional Reference it alter the main loop and should be avoided. Looks like that’s what’s causing your issue.
Near the top of your code, you have wp_reset_postdata();
.
As explained in the Functional Reference it alter the main loop and should be avoided. Looks like that’s what’s causing your issue.