Home >Backend Development >PHP Tutorial >有做过wordpress的吗求助判断首页问题

有做过wordpress的吗求助判断首页问题

WBOY
WBOYOriginal
2016-06-23 14:10:23794browse

求助我用的是is_home(),但是如何让它只符合首页呢,用这个判断怎么首页的分页也符合,其余文章什么都正常的,就是这个分页比如www.aaa.com/page/2这个首页的分页为何也是符合is_home()判断的,怎样只有首页符合条件呢?


回复讨论(解决方案)

if(is_home() && !$_GET)
           yes
else 
          no 

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn