get if is post or page to use in a conditional