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
Post a Comment