converts posts to pages