Support » Theme: Twenty Fourteen » Category Pages Display only Title and thumb

  • Hi, I’m using a child theme of twenty fourteen. In my menu, “Quotes” is a category page. I want to display only the title and the image from inside the post. I found code for displaying the title only but I can’t figure out how to add the posts image.

    The child theme is using a content-titles.php to accomplish showing the title only… but is there a way to code it to also show the image inside the post?

     * The custom content archive template for displaying entry titles only on archive pages
     * @author    Brad Dalton
     * @example
     * @copyright 2014 WP Sites
     * @subpackage Twenty_Fourteen
    <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    	<header class="entry-header">
    		<?php	if ( is_single() ) :
    				the_title( '<h1 class="entry-title">', '</h1>' ); 
    			else :
    				the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' );
    		</header><!-- .entry-header -->
    			wp_link_pages( array(
    				'before'      => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>',
    				'after'       => '</div>',
    				'link_before' => '<span>',
    				'link_after'  => '</span>',
    			) );
    </article><!-- #post-## -->

    The page I need help with: [log in to see the link]

  • The topic ‘Category Pages Display only Title and thumb’ is closed to new replies.