Moved WordPress loop into header and footer