added post type support for layouts

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