0
我已经创建了一个名为“产品”WordPress的自定义页面模板
<?php
/*
Template Name: Products
*/
?>
<?php get_header(); ?>
<div id="products_content">
<div id="products_page_header">
<div id="products_page" title="محصولات">
<?php if (have_posts()) : while (have_posts()) : the_post();?>
<div class="post">
<h2 id="post-<?php the_ID(); ?>">
<?php the_title();?>
</h2>
<div class="entrytext">
<?php the_content('<p class="serif">Read the rest of this page »</p>'); ?>
</div>
</div>
<?php endwhile; endif; ?>
</div>
</div>
</div>
<div id="clear"> </div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
</div>
</body></html>
但它不显示我的帖子,我究竟做错了一个自定义页面?
注意到会发生!它不会显示任何帖子! – datisdesign 2010-01-27 17:19:44