added looping through posts.  will add page links later