Added template restrictions

* Added support for template restrictions
* post_type now defaults to all

Signed-off-by: Oz Ramos <>