removed only $post thus also including pages.

Signed-off-by: schnnmbr <sachingopalakrishnan@gmail.com>