Title: Excerpt
Last modified: August 30, 2016

---

# Excerpt

 *  Resolved [cboysworld](https://wordpress.org/support/users/cboysworld/)
 * (@cboysworld)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/excerpt-43/)
 * Hello, In Twhenty-sixteen, I have a list of categories in the top primary menu.
   When a category button is clicked, all the post are shown. How can I show just
   an excerpt of the posts when a category button is clicked?
 * Chad

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [dimitris33](https://wordpress.org/support/users/dimitris33/)
 * (@dimitris33)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/excerpt-43/#post-6887641)
 * Hi,
 * you can open the screen options (top right in your edit post page) and enable
   the ‘excerpt’
 *  Thread Starter [cboysworld](https://wordpress.org/support/users/cboysworld/)
 * (@cboysworld)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/excerpt-43/#post-6887683)
 * Thank you for your reply but I am looking for a way to dynamically add an excerpt
   of all post from a category in the content area. The widget from the screen tab
   is more of a specific excerpt.
 *  [dimitris33](https://wordpress.org/support/users/dimitris33/)
 * (@dimitris33)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/excerpt-43/#post-6887702)
 * You will need to edit your theme and add some files.
 * 1.create a child theme
    2.copy your archive.php file from your parent theme to
   your child theme 3.copy the folder ‘template-parts’ from your parent theme to
   your child theme 4.rename ‘archive.php’ to ‘category-test.php’ 5.open the ‘category-
   test.php’ and find this line
 *     ```
       get_template_part( 'template-parts/content', get_post_format() );
       ```
   
 * and change it to
 *     ```
       get_template_part( 'template-parts/custom-content', get_post_format() );
       ```
   
 * 6.go to your child theme ‘template-parts’ folder and copy paste the file ‘content.
   php’, rename it to ‘custom-content.php’
    7.edit it and find this code
 *     ```
       the_content( sprintf(
       				__( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'twentysixteen' ),
       				get_the_title()
       			) );
       ```
   
 * comment it like this
 *     ```
       /*the_content( sprintf(
       				__( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'twentysixteen' ),
       				get_the_title()
       			) );
       */
       ```
   
 * and add below it this
 *     ```
       the_excerpt();
       ```
   
 * 6.save : )
    7.the test part in the filename ‘category-test’ should be the category
   you want to target
 * [http://codex.wordpress.org/Child_Themes](http://codex.wordpress.org/Child_Themes)
   
   [https://developer.wordpress.org/themes/template-files-section/taxonomy-templates/](https://developer.wordpress.org/themes/template-files-section/taxonomy-templates/)

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Excerpt’ is closed to new replies.

## Tags

 * [excerpt](https://wordpress.org/support/topic-tag/excerpt/)
 * [post](https://wordpress.org/support/topic-tag/post/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [dimitris33](https://wordpress.org/support/users/dimitris33/)
 * Last activity: [10 years, 4 months ago](https://wordpress.org/support/topic/excerpt-43/#post-6887702)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
