Changes between Initial Version and Version 1 of Ticket #30982, comment 5
- Timestamp:
- 01/24/2015 03:53:00 PM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #30982, comment 5
initial v1 11 11 So then I poked at query.php and discovered that the filter for `the_posts` is wrapped in a `suppress_filters` check. So by adding `'suppress_filters' => true` to the query being called in the function called by the `the_posts` hook, I get exactly what I want. 12 12 13 Having said all that, if there was a way to make `post__in` work with `pre_get_posts` that would be easier. 14 13 15 I put all this here in case the next guy that comes along find my solution useful.