For my plugin to work right, I need to be able to filter out posts when the WordPress loop is called. My plugin is called before the loop, which will set the conditions for what should be filtered.
add_filter does not seem to be the right fit for the job. Using add_filter causes filtering to occur EVERYWHERE even if my plugin is not called. add_filter also filters results before the loop, which does not allow my plugin the chance to decide what needs to be filtered out.
I’ve been banging my head against the wall on this one for a couple of weeks now. I’m at a loss. Suggestions?
- The topic ‘filtering posts’ is closed to new replies.