Added optional post type and custom field support. Added advanced custom fields text input support.