ab
V2EX  ›  问与答

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

  •  
  •   ab · Dec 23, 2016 · 2142 views
    This topic created in 3603 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   ·   3699 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 05:23 · PVG 13:23 · LAX 21:23 · JFK 00:23
    ♥ Do have faith in what you're doing.