Support » Fixing WordPress » Changing full post to excerpt in categories of Twenty Sixteen

  • I have the Twenty sixteen theme and I want excerpts to be displayed in category pages instead of full posts.
    I see that the file archive.php contains the following lines in The Loop:
    while ( have_posts() ) : the_post();
    get_template_part( ‘template-parts/content’, get_post_format() );
    endwhile;

    How should I change them to show the excerpts?
    I tried replacing the line with the_excerpt(); but titles are not displayed.
    Thank you.

    • This topic was modified 2 years, 2 months ago by sherlock16.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Changing full post to excerpt in categories of Twenty Sixteen’ is closed to new replies.