Views "post" filter (complex query) I have a View (let's call it A) that gets the 4 more recent nodes of type News. The News node has a boolean field called IsImportantNews. Since I render the most recent important News (IsImportanNews = true) in another View (B), I'd like to filter out from View A the most recent important News that I already shown in View B.

Eg:

News1 -&gt; date: 02 Mar 2013, IsImportant = false
News2 -&gt; date: 01 Mar 2013, IsImportant = false
News3 -&gt; date: 25 Feb 2013, IsImportant = true
News4 -&gt; date: 21 Feb 2013, IsImportant = false
News5 -&gt; date: 19 Feb 2013, IsImportant = true
News6 -&gt; date: 11 Feb 2013, IsImportant = true


I'd like to show the News3 in the View B (and I can do that easily).
I'd like to show News1/2/4/5 in the View A, somewhat filtering out the News3.

Is there a way to do that? I thought about taking the 5 more recent News and than apply some php code to filter out the unwanted News but I can't seem to find a place to put that code without writing a new module. Is there another way to do that?
hook_views_pre_render() would enable you to filter out results after the query has already been run. Keep in mind that the results that are filtered out are still part of the query, with all the performance ramifications of that. Putting that in a custom module would be how I would do that.

If you don't want a view that's just a filtered version of the IsImportant == TRUE view, you could clone the first view and create a similar one whose only difference is that it returns four more results than the IsImportant == TRUE view. You could then add whatever filtering logic you want, and then limit the display to a certain number of items before rendering.

You may also want to take a look at the Peek Summary module, since it gives some further granularity to number of results returned beyond what Views alone offers.