2011-10-13 39 views
0

我在我正在处理的网站上遇到问题。我将精选图片设置为所有页面上边栏的一部分(即关于我们,我们做什么等),但该图片未显示在具有博客文章的页面上。以下是博客模板页面的代码:精选图像没有出现在博客页面上的侧边栏

<?php 
/** 
* Template Name: Blog page 
* 
* @package WordPress 
* @subpackage SPS 
*/ 
?> 

<?php get_header(); ?> 

    <div id="firstSection"> 
    <?php query_posts('post_type=post'); ?> 
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?> 

    <h1 class="blog-title"><a href="<?php the_permalink(); ?>" id="post-<?php the_ID(); ?>"><?php the_title(); ?></a></h1> 
    <div class="meta"><?php _e('Posted'); ?>&nbsp;<a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"> 
    <?php the_date('','',''); ?></a>&nbsp;<?php _e('by'); ?>&nbsp;<?php the_author(); ?>.&nbsp; 
    <?php comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)')); ?> 
    <span class="edit-link"><?php edit_post_link(__('[Edit]')); ?></span> 
</div> 
<div> 
    <p class="blog-text"><?php the_excerpt(__('(more...)')); ?></p> 
</div> 
    <?php endwhile; ?> 
    <?php else: ?> 
<p>Sorry, no posts matched your criteria.</p> 
     <?php endif; ?> 
    <?php posts_nav_link(); ?> 
    </div> 

<?php get_sidebar(); ?>  
<?php get_footer(); ?> 

有我在代码中忽略的东西,或者我要对错误的方式?任何帮助将不胜感激。

问候, Dalogi

回答