php - How to display post images in category view? -


i working theme inherited has been poorly coded.

the category view displaying horrible default youtube missing video picture @ top of each post snippet originally. edited cateogry.php this, , category view working:

<?php /**  * template displaying category archive pages.  *  * @package wordpress  * @subpackage zelop  */  get_header(); ?>          <section class="main">          <?php if( is_category( of_get_option('video_blog') ) ) : ?>                       <h1 class="page-title"><?php                       echo single_cat_title( '', false );                   ?></h1>                       <?php get_template_part( 'loop', 'archive' ); ?>           <?php else : ?>                         <h1 class="page-title"><?php                       echo single_cat_title( '', false );                   ?></h1>                       <?php get_template_part( 'loop', 'archive' ); ?>            <?php endif; ?>                  </section><!--end of main-->          <?php get_sidebar(); ?>      </section>  <?php get_footer(); ?> 

however when category page displayed there no images appearing @ top of each snippet.

i featured image of each post, appear in categories view, above snippet, code can add category.php featured images each post, shown above post snippet?


Comments

Popular posts from this blog

angular - DownloadURL return null in below code -

python 2.7 - Given three nested dictionaries, sort the top two nested dictionaries from a value in the innermost dictionary? -