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

Check for taxonomy archive on search results page

programmeradmin10浏览0评论

I'm looking for a conditional tag to check if a taxonomy archive page(link) is displayed on my search results page.

is_tax(); only seems to check if the current page is a taxonomy archive page and can't be used. has_term('','my_taxonomy') works fine for posts using the taxonomy but obviously not the taxonomy archive.

I've searched the Codex but start to doubt if this is even possible?

发布评论

评论列表(0)

  1. 暂无评论