Adding post/page logic.