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

wp query - Make a page return false to is_single() and true for is_post_type_archive() before wp_enqueue_scripts

programmeradmin4浏览0评论

I am using a page to replace custom post type archive. I used page template in that page to query CPTs like a CPT archive

The problem is, since I conditionally load different css files based on the page, I want this page to return false to is_single() and true to is_archive() so that it won't break my conditional. How can I achieve this? What is the earliest hook I can use?

发布评论

评论列表(0)

  1. 暂无评论