fixes #6
fixes #12, added custom post type WP_Query function