found way to access posts outside main loop