How to create a flexible abstraction for WP_Query?
Your question is not really about WordPress, it is more about PHP and refactoring. But we see so much bad code here, and the pattern I will explain below (MVC) could help many other developers, so I decided to write a little answer. Keep in mind, there is a dedicated site for such questions in … Read more