这是我网站上存档页面的代码,当我尝试打开此页面时,它会出现404错误,并且不会显示任何内容。此代码中是否存在阻止它的问题?我正在为存档内容使用自定义帖子类型插件。
<?php get_header(); ?>
<style type="text/css">
.b33 { float:left; width: 33%; padding-left: 25px; padding-top: 35px; }
.b33 img { max-width:100%; border:8px solid #91B49C;float:left; height:200px; overflow:hidden;}
</style>
<?php // IMAGE SLIDESHOW ?>
<div id="content" style="border-bottom: 1px solid #664422; background-color:#F0FFF0; border-top: 1px solid #664422; margin-top:0; height:670px;">
<div id="inner-content" class="wrap cf">
<div class="fadein" style="width:100%; overflow:hidden; height:670px;">
<img style="width:100%;border:8px solid #91B49C; margin:1em 0 1em 0;" src="<?php echo get_site_url(); ?>/wp-content/uploads/2016/05/Wedding-1.jpg">
<img style="width:100%;border:8px solid #91B49C; margin:1em 0 1em 0;" src="<?php echo get_site_url(); ?>/wp-content/uploads/2016/05/Wedding-2.jpg">
<img style="width:100%;border:8px solid #91B49C; margin:1em 0 1em 0;" src="<?php echo get_site_url(); ?>/wp-content/uploads/2016/05/Funeral-5.jpg">
</div>
</div>
</div>
<?php // END OF IMAGE SLIDESHOW ?>
<div id="content" style="background-color:#E0EEE0; margin-top:0; border-bottom:1px solid #664422;">
<div id="inner-content" class="wrap cf">
<h1 class="page-title-text" style="text-align:center; font-family: \'Josefin Slab\', serif; color:#664422;" >Birthday & Anniversary</h3>
</div>
</div>
<div id="primary" class="content-area" style="background-color:#F0FFF0; border-bottom:1px solid #664422;>
<div id="content" class="site-content" role="main">
<div id="inner-content" class="wrap cf">
<?php $loop = new WP_Query( array( \'post_type\' => \'birthdays\', \'order\' => \'ASC\', \'posts_per_page\' => -1 ) ); ?>
<?php while ( $loop->have_posts() ) : $loop->the_post(); ?>
<div class="b33" style=" margin:0.5em 0.5em 0.5em 0.5em; border: 8px solid #91B49C; height:350px; width:31.5%; float:left; background-size: cover; background-repeat: no-repeat; overflow:hidden; background-image: url(\'<?php the_field( \'image\' ); ?>\')">
</div>
<?php endwhile; wp_reset_query(); ?>
</div>
</div><!-- #content -->
</div><!-- #primary -->
<?php get_footer(); ?>