Added option for return value

With this you can choose to return post objects or post ids