Setting a variable as a function call to use in an if statement within PHP

前端 未结 1 524
醉酒成梦
醉酒成梦 2021-01-26 03:15

Ok, so am doing some Wordpress edits, and I writ a if statement.





        
1条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-26 03:59

    Use get_the_title() instead of the_title().

    Source: http://codex.wordpress.org/Function_Reference/get_the_title

    0 讨论(0)
提交回复
热议问题