为什么2个主页的布局不同。
当我把http://localhost/mysite/home/
布局看起来不错,博客列表就在那里。。这里没有问题。。但当我点击主页时,它会自动转到这个url。。。
http://localhost/mysite/
博客帖子列表也不见了。。。
我创建了一个名为“主页”的页面,它使用自定义模板。。。并将其设置为位于“设置>>阅读”中的“首页”
这是我的自定义模板的代码。。。
<?php /*
Template Name: List BLog
*/ ?>
<?php get_header(); ?>
<?php if ( has_post_thumbnail() ) { ?>
<div class="featured">
<?php the_post_thumbnail(); ?>
</div>
<?php } ?>
<div class="divider"></div>
<?php genesis_before_content_sidebar_wrap(); ?>
<div id="content-sidebar-wrap">
<?php genesis_before_content(); ?>
<div id="content" class="hfeed">
<?php genesis_before_loop(); ?>
<?php query_posts( $args ); ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div <?php post_class() ?> id="post-<?php the_ID(); ?>">
<h2><a href="<?php the_permalink() ?>">
<?php the_title(); ?>
</a></h2>
<div class="postmetadata"> Posted in:
<?php the_category(\', \') ?>
|
<?php comments_popup_link(\'No Comments »\', \'1 Comment »\', \'% Comments »\'); ?>
</div>
<div class="entry-content">
<?php the_excerpt(); ?>
</div>
</div>
<?php endwhile; ?>
<?php else : ?>
<h2>Not Found</h2>
<?php endif; ?>
<?php genesis_after_loop(); ?>
</div>
<!-- end #content -->
<?php genesis_after_content(); ?>
</div>
<!-- end #content-sidebar-wrap -->
<?php genesis_after_content_sidebar_wrap(); ?>
<?php get_footer(); ?>
我不知道发生了什么事。帮助