Add type parameter for the posts() request to restrict list of posts by type