Switching post to page variable