style changes, moving get-posts out of macro