所以,我使用Html5blank在wordpress中重新创建html模板。我对页眉和页脚没有任何问题,它们都很完美。我遇到的问题是让我的page.php显示我对它所做的更改,它奇怪地似乎不符合我的css样式,要么。任何帮助都将不胜感激。谢谢!
ETA:我研究了这个网站很长一段时间,虽然有几个问题有点相似,但我没有找到任何我真正的问题。我不知道为什么我被否决了,但我想我应该提一下,我确实四处寻找了这个答案。似乎没有人有这样的问题,如果他们有类似的问题,他们的决心对我一点帮助都没有。
下面是my page.php的代码<?php get_header(); ?>
<!-- MAIN CONTENT -->
<div id="outermain">
<div class="container">
<div class="row">
<section id="maincontent" class="twelve columns">
<div class="main">
<section class="content">
<article class="post">
<div class="postimg">
<div align="center">
</div>
</div>
<div class="entry-date">
<div class="postdate">02</div>
<div class="posttime">September</div>
</div>
<div class="entry-text">
<h2 class="posttitle">
<a href="single.html">Phasellus tempus mauris quis dui lobortis.</a></h2>
<?php if (have_posts()): while (have_posts()) : the_post(); ?>
<div class="entry-content">
<?php article id="post-<?php the_ID(); ?>"
<?php post_class(); ?>>
<?php the_content(); ?>
</div>
</div>
<div class="clear"></div>
<?php edit_post_link(); ?>
</article>
<?php endif; ?>
</section>
</div>
</section>
</div>
</div>
</div>
<!-- END MAIN CONTENT -->
<div id="shadowbottom"></div>
<?php get_footer(); ?>
我认为你需要关闭你的WP Loop:
<?php endwhile; else: ?>
<p>Roops, no content here.</p>
<?php endif; ?>
参考:http://codex.wordpress.org/The_Loop