• Не выводится превью в WordPress?

    @web_Cat Автор вопроса
    echo не помогло.
    <?php if ( have_posts() ) { while ( have_posts() ) { the_post(); ?>
                <article class="post">
    
                   <div class="entry-header cf">
    
                      <h1><a href="single.html" title=""><?php the_title() ?></a></h1>
    
                      <p class="post-meta">
    
                         <time class="date" datetime="2014-01-14T11:24">Jan 14, 2014</time>
                         /
                         <span class="categories">
                         <a href="#">Design</a> /
                         <a href="#">User Inferface</a> /
                         <a href="#">Web Design</a>
                         </span>
    
                      </p>
    
                   </div>
     
                   
                   <div class="post-thumb">
                      <?php the_post_thumbnail() ?>
                   </div>
    
                   <div class="post-content">
                      <?php the_post() ?>
                      <?php the_content() ?>
                   </div>
    
                </article> <!-- post end -->
                <?php } } else { ?>
                   <p>Записей нет.</p>
             <?php } ?>

    обернул циклом - ничего не вывелось. Если цикл убрать - выводится только the_post и content
    Ответ написан
    Комментировать