have_posts() 有没有文章信息 if...else if....else.if ...else 注意:主循环的内容会自动匹配调用的页面类型,如主页下循环的是文章列表内容,而在single.php中调用的是当前id的页面内容。 参考文档: http://codex.wordpress.org Read More
posted @ 2017-01-25 23:39 tinyphp Views(939) Comments(0) Diggs(0) Edit
调用方法一:手动输入html 调用方法二:使用自定义的函数 然后在页面相应位置调用: 调用方法三:使用模板 在模板中创建searchform.php 然后在页面相应位置调用: 调用方法四:使用引入标签 Read More
posted @ 2017-01-25 14:16 tinyphp Views(1344) Comments(0) Diggs(0) Edit