0
爲什麼2個主頁的佈局是不同的。WordPress的問題和佈局
當我把http://localhost/mysite/home/
佈局看起來不錯和博客一覽表是有..這裏有沒有問題.. 但是當我點擊首頁這會自動進入該網址...
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(); ?>
我不知道發生了什麼。幫助..
你好,在主頁模板你有什麼?你可以把你的主頁模板代碼嗎? –