moves wp_pagenavi check to inside the pager div to wrap around the correct navigation links