Added post type comparisons

Added post type comparison to prevent storing null values for taxonomy
and timestamp selectors, props @norcross