add postmeta data and thumbnail at search result and archive page