ab
V2EX  ›  问与答

wordpress 有没有内置函数可以获取页面类型?

  •  
  •   ab · Dec 23, 2016 · 2156 views
    This topic created in 3617 days ago, the information mentioned may be changed or developed.
    不是判断,是获取。

    比如直接返回类型值 home 或者 page 等等
    2 replies  •  2016-12-26 16:26:59 +08:00
    Neo
    Neo
    Dec 23, 2016
    1
    总共就那几个类型, if 判断几下也就相当于获取了,为什么不直接去官方文档找
    Balthild
    Balthild
    Dec 26, 2016 via Android
    2
    没有
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1293 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 23:56 · PVG 07:56 · LAX 15:56 · JFK 18:56
    ♥ Do have faith in what you're doing.