我的single.php,归档,索引和category.php页面都使用下面这个编码相同...WordPress的档案和容器错误?
<?php
/*
Template Name: Lisa-beauty.co.uk
*/
?>
<?php get_header(); ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="headpostedin"><?php the_time('l, F jS, Y') ?> </div>
<div class="content" id="post-<?php the_ID(); ?>">" rel="bookmark" title="<?php the_title_attribute(); ?>"><div class="headtitle"><?php the_title(); ?></div> \t
<div class="postmetadata"></div>
<?php the_content(__('CONTINUE READING...')); ?>
<?php the_tags('Tags: ', ', ', '
'); ?>
<div class="headposted"><?php comments_popup_link('0', '1', '%'); ?> comments</div>
<?php echo DISPLAY_ULTIMATE_PLUS(); ?>
<?php comments_template(); // Get wp-comments.php template ?>
<?php endwhile; else: ?>
<?php _e('Sorry, no posts matched your criteria.'); ?>
<?php endif; ?>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
每个人都工作正常,在我的整个网站丽莎美容。 co.uk但只要我点击我的档案在我的侧边栏,然后在页面http://lisa-beauty.co.uk/lisa-beauty/?m=201509&paged=4我的整个容器和边栏完全关闭,但在其他页面上,他们在我的档案中没问题。
什么可能导致此问题?
这是我从我的header.php编码和footer.php
<!DOCTYPE html>
<head>
<meta name="description" content="Beauty uk blogger">
<meta name="keywords" content="blogger, beauty, fashion, make up">
<meta name="author" content="Lisa Robinson">
<meta charset="UTF-8">
<title>Lisa's Beauty UK Blog!</title>
<style type="text/css" media="screen"> \t @import url(/wp-content/themes/twentytwelve1/style.css);</style>
<?php wp_head(); ?>
</head>
<body>
<a name="top"></a>
<div id="container">
<div id="header" onclick="window.location='http://lisa-beauty.co.uk'">
</div>
<div id="content">
<div class="content">
</br>
</div>
页脚
<div id="foot">
<div id="footer-wrapper">
</div>
</div>
<div class="top">
<a href="#top" title="Go up"><u>↑ up</u></a>
</div>
<div class="left">
<div class="copyright">
Copyright 2015 www.lisa-beauty.co.uk <u>All rights reserved</u> | Powered by Wordpress | Theme by <a href="http://www.akaleez.co.uk/"><u>Akaleez</u></a>
</div>
</div>
<?php get_sidebar(); ?>
<?php wp_footer(); ?>
</body>
</html>
这是您的加价问题,我猜想,您正在关闭某个div的地方,您不应该这样做,但我无法按照加价来告诉您在哪里,它写得太糟糕了。我会说你最好的选择是从头开始重新编写你的标记。 – sticksu
这很奇怪,我从评论或archive.php中删除了一个div,然后一个页面出现了侧边栏和容器错误,但之后我的其他页面出错了。似乎只在特定的网页上,例如这一个http://lisa-beauty.co.uk/lisa-beauty/?m=201504&paged=2 –