【发布时间】:2020-06-08 23:58:35
【问题描述】:
我的 single.php 中有以下代码,它输出以下链接
<div class="dt"><?php echo get_the_date();?></div>
<div class="cat">
<?php the_category(', ');?>
</div>
<div class="tag">
<?php the_tags();?>
</div>
<div class="arc">
<a href="<?php echo get_post_type_archive_link( 'post' ); ?>">Archives</a>
</div>
category 和 tag 的链接都在通过 category.php 和 tag.php 产生输出,但是,我不知道如何链接到 archive.php,我打算在其中显示帖子存档
【问题讨论】: