最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

woocommerce offtopic - Archive Meta on Product Post Type

programmeradmin5浏览0评论

I am using a filtered search to provide end user the ability to browse either live/published Woocommerce product listings or archived product listings; however, I am running into an issue where I am unable to expose a metakey for 'is_archived_()'. This is resulting in the user search pulling a mix of published and archived and is confusing from an ecomm standpoint.

How I would like to approach this is: on the product post template, IF product post IS archived, apply new tag value = Expired.
Admittedly, I am not well versed yet in get_query functions, so any help on how the code would look is immensely appreciated.

Cheers all,

Abe

发布评论

评论列表(0)

  1. 暂无评论