fixed issue where get_post_type() shows false
fixed an issue that was caused by not resetting a query