correctly detect post page