Revised logic to fix missing featured image bug and address featured image location