Dmitry

Не отображается ни sidebar, ни footer.

Все страницы работают прекрасно и в любом браузере, но есть проблема с отображением Sidebar и Footer на странице чтения поста. Что я только не пробовал. Не работает и все. В результате пришел к выводу, что проблема таится в обработке поста, так как без обработки сайдбар и подвал есть, а именно:

ТАК ЕСТЬ сайд бар и подвал

<?php get_header(); ?>

<?php get_footer(); ?>

ТАК ЕСТЬ пост

<?php get_header(); ?>

<div id="content" class="narrowcolumn">

<?php if (have_posts()) : while (have_posts()) : the_post(); ?>

<div class="post" id="post-<?php the_ID(); ?>">
<div class="post-top">
<div class="post-date">
<?php the_time(‘M’) ?>
<p><?php the_time(‘d’) ?></p>
</div>
<div class="post-title">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php if ( function_exists(‘the_title_attribute’)) the_title_attribute(); else the_title(); ?>"><?php the_title(); ?></a></h2>
<h3>
<span><?php the_category(‘, ‘) ?></span>
</h3>
<?php if ( function_exists(‘the_tags’)) the_tags(‘<h4>Tagged Under : <span>’, ‘, ‘, ‘ </span></h4>’); ?>
</div>
</div>

<div class="entry clear">
<?php the_content(‘Читать дальше &raquo;’); ?>
</div>

<div class="postmetadata">
<div class="alignleft">
<a><?php comments_number(‘Комментарии отсутствуют’, ‘<span>1</span> Комментарий’, ‘<span>%</span> Комментарий’); ?></a>
</div>
<div class="alignright">
<?php edit_post_link(‘Редактировать’, ”, ‘&nbsp;&nbsp;&nbsp;’); ?>
</div>
</div>
</div>

<?php comments_template(); ?>

<?php endwhile; else: ?>

<p>Sorry, no posts matched your criteria.</p>

<?php endif; ?>

</div>

<?php get_footer(); ?>

Вместе не получается! Подскажите, пожалуйста, как исправить. Не хочется другой шаблон брать и его изменять. На этот уже много времени потратил, а такую ошибку сразу не увидел (

С уважением, Дмитрий.

Anonymous
Отправить
Ответ на: