Modify main query before it run without pre_get_post
Rather than trying to set a global variable, just use the main query for both the widget and the other content. Simply adjust your Loop. If you share more of your code perhaps we can help specify where this would go, but the general idea is to move the start of the Loop above wherever … Read more