大多数的WordPress博客在整个网站中都使用相同的页脚,很少有人知道其实利用 get_footer 函数可以非常简单的实现不同的页面类型显示不同的页脚。例如,你可以: 在首页显示一个由精选文章列表组成的大的页脚。 在文章页面(single.php)显示一个相关帖子的页脚。 也可以显示一个由广告、存档、网站地图组成的页脚。 在你的404页面显示一个有分类和存档链接的页脚。
今天看到有WordPress博主在问“WordPress博客首页如何排除指定分类的文章?”。用户为什么想这样做的原因有很多,也许你不希望在首页上显示上显示自己生活类的文章,而只显示一些新闻类的文章。要做到这一点,你就需要在 The loop 中更改调用文章的函数。WordPress默认主题 Twenty Ten 和 Twenty Eleven 使用 the_post() 函数来调用所有的博客文章。the_post() 函数使用 WP_Query。我们可以使用 WP_Query 函数本身来自定义哪些文章被调用,或者哪些存档、分类、时间的文章可以显示在主页。
很多WordPress博客的页脚都会加上版权声明。当我们进入2012年以后,为了确保你的版权声明不过时,就必须要及时的更新版权声明时间。下面我来介绍一种可以自动更新你的版权声明时间的方法。在你的博客中显示当年的版权声明你就需要用到the_date函数。添加以上函数到你的footer.php模板文件中,以确保自动更新时间。类似:Copyright © 落日博客
据国外媒体称,柯达公司正在准备出售数码影像专利来偿还巨额债务,若出售失败,则将会在未来几周提出破产保护申请。
苹果的第一代iPhone实际上创造于1983年。这款iPhone是一台座机,它拥有白色的机身,内置了一块用手写笔控制的屏幕。
Hunter