adding getoption method to post type class
Merge branch 'release/1.0.2'