added conditional logic to detect if archive is custom tax or custom post type else display normal post excerpt content