Reset WordPress Post Query to default
Your problem is your custom query. Do not use variables that is used by default by WordPress. $posts and $post is WordPress reserved global variables. Change $post to a unique variable, something like $posts_query. When using get_posts and you need to setup postdata to make use of template tags, you have no choiche but to … Read more