alleyinteractive / archiveless

WordPress plugin to hide posts from archives (lists)
GNU General Public License v2.0
7 stars 4 forks source link

Remove SQL dependence #2

Closed mboynes closed 2 years ago

mboynes commented 9 years ago

Currently, this plugin modifies the generated SQL query to work. It would be much better if this were to use pre_get_posts.

The challenge is that there's no simple default, so if post_status isn't set, this plugin would need to reinvent the wheel a bit to set the default to be the same as what WP_Query would set.