Tagged: woocommerce
Hi,
i’m using the Search Content Element on my site and have the layout set to show meta data for search results in an overlay. Everything works great except that since Woo products don’t have an excerpt, it just shows the date in the meta area under each product search result. Is there a hook I can add that would allow me to display another product field there instead of the date? See the link in in the private content.
Thanks in advance!
Hey waxingmedia,
Thank you for the inquiry.
You can use the “avf_ajax_search_no_excerpt” filter to replace the date with other data or with a new content. The date only shows when a post does not have an excerpt.
Best regards,
Ismael
Thanks, Ismael! Appreciate it!
Also, for other users, here’s a link to a similar post – https://kriesi.at/support/topic/ajax-search-box-displaying-the-date/