veter48
11-10-2012, 16:58
Здравствуйте, есть проблема, в друг пропали посты из одной категории. Ну, они не пропали, в админке они есть, и привязаны, но почему-то они ни выводятся? Вот код вывода:
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<div class="post">
<?php the_thumb( 100, 100 ); ?>
<div class="info">
<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
<div class="excerpt">
<?php the_excerpt(); ?>
</div>
<p class="meta-info">
<?php
if( get_the_time( "Y.m.d" ) == date( "Y.m.d" ) ) $postDateFormat = "H:m";
else $postDateFormat = "Y.m.d";
?>
<span class="post-time"><?php the_time( $postDateFormat ); ?></span>
<span class="comments"><?php comments_number( '', __( " | one comment" ), __( " | % comments" ) ); ?></span>
<span class="read-more"><a href="<?php the_permalink(); ?>"><?php _e( "read more" ); ?></a> »</span>
</p>
</div>
</div>
<?php endwhile; endif; ?>
, ранее всё было хорошо.
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<div class="post">
<?php the_thumb( 100, 100 ); ?>
<div class="info">
<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
<div class="excerpt">
<?php the_excerpt(); ?>
</div>
<p class="meta-info">
<?php
if( get_the_time( "Y.m.d" ) == date( "Y.m.d" ) ) $postDateFormat = "H:m";
else $postDateFormat = "Y.m.d";
?>
<span class="post-time"><?php the_time( $postDateFormat ); ?></span>
<span class="comments"><?php comments_number( '', __( " | one comment" ), __( " | % comments" ) ); ?></span>
<span class="read-more"><a href="<?php the_permalink(); ?>"><?php _e( "read more" ); ?></a> »</span>
</p>
</div>
</div>
<?php endwhile; endif; ?>
, ранее всё было хорошо.