Added loop to build posts