How do I edit pre_get_post for the category the user is currently in?
You don’t need to! With a little understanding of how URLs and query vars work, we can do this entirely within the URL of the page, with no additional PHP code First we have a URL: example.com/abc/123 Then we have a rewrite rule. The rule has a regex pattern that matches the URL, and a … Read more