php - Wordpress Archive page completely blank
问题描述
I have the following archive page setup:
<?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(); ?>
However, the page is completely white when I load the archive page. It is a new site with no plugins, and all the other pages are working fine. Any idea?
解决方案
出于某种奇怪的原因,当我将代码添加到 index.php 文件时,存档变得可见。
推荐阅读
- javascript - 创建复制工作表并根据表单响应更新工作表的脚本时出现问题
- amazon-web-services - 如何使用 AWS 进行无密码登录
- python - tkinter python所有单选按钮选择
- javascript - 嵌入页脚不和谐机器人中的用户名
- pyarrow - Apache Arrow 还是羽毛插件?
- mongodb - 为 mongodb 集合创建索引
- angular - Fake Backend 为 Angular 应用程序提供了哪些功能?
- oracle - 如何通过组合两个目标单元格为空的另一个单元格来选择一行?
- bluetooth-lowenergy - 为什么启用 BLE 后 ESP32 会重启?
- html - 解析:自动从一个 html 页面翻译一篇文章并将其复制到另一个 html 页面