Link Custom Post Type Sidebar to Page/Posts October 1, 2022 by Tarik Billa It was the WP_Query overwriting my main query. Using get_posts fixed the issue.