0

我正在尝试设置档案页面,并且我有以下代码按月创建档案列表:

<?php wp_get_archives('type=monthly'); ?>

所以,当我点击一个月时,它会把我带到页面“/?m=201309”,但这个页面的模板是我的主页。如何自定义该页面以列出该月的帖子?

4

1 回答 1

0

您需要创建archives.php 并相应地设计它。

查看 tut plus 的这个很棒的教程,你的所有疑问都会得到解决。

http://wp.tutsplus.com/tutorials/create-a-wordpress-archives-template-for-your-theme/

于 2013-09-27T11:09:42.270 回答