我具有以下存档页面设置:
<?php
get_header(); ?>
<div id="container">
<div id="content" role="main">
<?php the_post(); ?>
<h1 class="entry-title"><?php the_title(); ?></h1>
<?php get_search_form(); ?>
<h2>Archives by Month:</h2>
<ul>
<?php wp_get_archives('type=monthly'); ?>
</ul>
<h2>Archives by Subject:</h2>
<ul>
<?php wp_list_categories(); ?>
</ul>
</div><!-- #content -->
</div><!-- #container -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>
但是,当我加载存档页面时,页面是完全白色的。这是一个没有插件的新站点,所有其他页面都工作正常。有想法吗?
答案 0 :(得分:0)
出于某些奇怪的原因,当我将代码添加到index.php文件时,存档变得可见。