Update search filter function to only show posts.