Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
WPB Cup
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

How to Display Post Excerpts in WordPress Themes

Editorial Note: We earn a commission from partner links on WPBeginner. Commissions do not affect our editors' opinions or evaluations. Learn more about Editorial Process.

Do you want to learn how to display post excerpts in your WordPress theme?

By showing post excerpts instead of the full article on your blog, you can help visitors quickly find interesting content and reduce your site’s loading time.

In this article, we will show you how to add post excerpts to your WordPress theme.

How to display post excerpts in WordPress themes

Why Display Post Excerpts in WordPress?

By default, WordPress will show full posts on the homepage, blog page, and archive pages across your website. However, this isn’t the best experience for users who want to quickly browse through the different posts and find the one they want to read first.

It can also mean lots of scrolling, which is a huge problem for smartphone and tablet users.

As you publish more posts, WordPress may also split your blogs across multiple pages using pagination. As your older posts get pushed to other pages, they’ll often get much fewer views and less engagement.

For this reason, many blog owners show post excerpts on their archive and blog index pages instead. Since only a portion of each article is loaded, this can boost your WordPress speed and performance.

An example of post excerpts in a WordPress theme

WordPress does have built-in support for post excerpts, but not every theme makes use of this feature.

That being said, let’s show you how to display post excerpts in any WordPress theme.

How to Check if Your WordPress Theme Supports Post Excerpts

Most popular WordPress themes have a setting that allows you to show post excerpts instead of the full post.

To see if your theme supports post excerpts, go to Appearance » Customize in the WordPress dashboard.

The location of these settings will vary depending on your WordPress theme, but you need to look for any settings labeled ‘Blog.’

Adding post excerpts to a WordPress theme using the Customizer

For example, if you are using the Astra WordPress theme, then you’ll need to select ‘Blog’ and then click on ‘Blog/Archive.’

You can then scroll down to the ‘Post Content’ section and click on ‘Excerpt.’

Adding post excerpts to your WordPress website

If your theme has a ‘Theme Settings’ or ‘Post General Settings’ option, then you may also be able to enable post excerpts in these sections.

Once you’ve done that, simply click on the ‘Publish’ button. Now, if you visit the blog, archive, or homepage, you should see a list of blog excerpts rather than full posts.

If your theme doesn’t have built-in support for post excerpts, then you’ll need to add it. Simply use the quick links below to jump to the method you want to use:

Method 1: Add Post Excerpts to WordPress Using Code (Easy)

If your WordPress theme doesn’t support post excerpts by default, then you can always add this feature manually.

You can edit your WordPress theme files directly, but we recommend creating a child theme instead. That way, when you update your WordPress theme, you won’t lose the changes you’ve made.

For more details, see our beginner’s guide on how to create a WordPress child theme.

After creating your child theme, you’ll need to find the template that controls each page where you want to show post excerpts. For most themes, this will be home.php, content.php, category.php, and archive.php.

For help finding the right file, see our beginner’s guide to WordPress template hierarchy.

After that, you simply need to locate the following code in each file:

<?php the_content(); ?>

Then, replace this code with the_excerpt tag:

<?php the_excerpt(); ?>

With that done, save the file and then check your website. You should now see post excerpts where the full article used to be.

Change the Default WordPress Excerpt Length

By default, WordPress will show the first 55 words of each post and then add an ellipsis (…) to show that there’s more content.

You can change this to show more or fewer words by adding code to your WordPress website. While it is possible to edit the theme files directly, this can be complicated.

A simple mistake can also cause lots of common WordPress errors and may even completely break your site.

For that reason, we recommend using WPCode.  It makes it easy to add code snippets in WordPress without having to edit your theme files. That way, you can update or change your theme without losing the custom code.

First, you will need to install and activate the free WPCode plugin. For more information, see our step-by-step guide on how to install a WordPress plugin.

Upon activation, go to Code Snippets » + Add Snippet.

On the next screen, hover your mouse over the ‘Add Your Custom Code (New Snippet)’ option and click the ‘Use snippet’ button when it appears.

How to show post excerpts using code

On the next screen, type in a title for the code snippet. This is just for your reference, so you can use anything you want.

After that, open the ‘Code Type’ dropdown and choose ‘PHP Snippet.’

Customizing your post excerpts using code

With that done, simply paste the following into the code editor:

return 100;
}
add_filter('excerpt_length', 'new_excerpt_length');

// Changing excerpt more
function new_excerpt_more($more) {
return '...';
}
add_filter('excerpt_more', 'new_excerpt_more');

This code changes the post excerpt length to 100 characters. You can change the ‘100’ to any number you want.

After pasting the code, toggle the switch from ‘Inactive’ to ‘Active’ in the top right corner and then click the ‘Save Snippet’ button.

Save and activate code snippet WPCode

For more tips on how to fine-tune your post excerpts, please see our guide on how to customize WordPress excerpts with no code.

Method 2: Add Post Excerpts Using the Full Site Editor (Block Themes Only)

If you are using one of the newer block WordPress themes, then you can add post excerpts using the full site editor.

To get started, head over to Appearance » Editor in the WordPress dashboard.

Using the full-size editor (FSE)

By default, the full site editor shows your theme’s home template, but you can add an excerpt to any template.

In the left-hand menu, simply click on ‘Templates.’

Displaying post excerpts in WordPress using the full-site editor (FSE)

You’ll now see a list of all the templates that make up your WordPress theme. Depending on your theme, you may want to add excerpts to the archive, index, search, or similar template.

Simply find the template that you want to edit, and give it a click.

Displaying post excerpts using the WordPress full-site editor (FSE)

WordPress will now show a preview of this template.

To go ahead and edit the template, click on the small pencil icon.

Displaying post excerpts using the WordPress full-site editor (FSE)

Now, click on the ‘+’ icon.

In the search panel that appears, type in ‘Post Excerpt.’

Adding the post excerpt block to a block-based WordPress theme

When the right block appears, drag and drop it into your layout.

You can repeat this process to add multiple post excerpts to the template.

Adding the post excerpt block to a block-based WordPress theme

To fine-tune how the excerpt looks, just click to select the Post Excerpt block.

In the right-hand menu, you can start by choosing whether the ‘Read More’ link appears on the same line as the excerpt using the ‘Show link on new line’ toggle.

Adding a read more button to a blog archive page

With that done, select the ‘Styles’ tab. Here, you can change the text color, add a background color, change the font size, and more.

As you make changes, the live preview will update automatically, so you can try different settings to see what looks the best.

How to customize a WordPress post excerpt

When you are happy with how the post excerpt is set up, click on the ‘Save’ button to make your changes live.

Do you want to show post excerpts on more pages and posts? Then simply repeat the above steps, but this time choose a new template from the left-hand menu.

Method 3: Add Post Excerpts to WordPress Using a Theme Builder (Advanced)

If you want complete control over how the archive, blog page, homepage, and the rest of your site looks, then you can create a custom theme.

This allows you to design your own pages and show excerpts anywhere on your website.

SeedProd is the best WordPress theme builder plugin that allows you to easily create a custom WordPress theme without writing any code. It also has a ready-made Posts block that you can drag and drop onto any page.

Note: There is a free SeedProd plugin that allows you to create beautiful coming soon and maintenance mode pages, no matter your budget. However, you’ll need the SeedProd Pro or Elite plan to unlock the theme builder.

First, you need to install and activate the SeedProd plugin. For more details, see our step-by-step guide on how to install a WordPress plugin.

Upon activation, go to the SeedProd » Settings page and enter the plugin’s license key. You can find this information in your account on the SeedProd website.

Adding a SeedProd license key to WordPress

After entering the license key, you are ready to create a custom WordPress theme using the SeedProd theme builder.

First, you need to go to the SeedProd » Theme Builder page.

The SeedProd theme builder

Here, you can either use one of the ready-made SeedProd site kits and templates as a starting point or manually create a template from scratch.

We recommend starting with an existing theme, as it automatically creates all the necessary template files and gives you a head start.

With that being said, click on the ‘Theme Template Kits’ button.

Creating a custom WordPress theme using SeedProd

You can now choose any of the available templates.

All of these themes are fully customizable, so you can fine-tune them to perfectly suit your WordPress blog or website.

Choosing a theme template for your WordPress website or blog

After choosing a theme, SeedProd will automatically create all the theme templates you need.

You can think of this as the draft version of your custom WordPress theme.

Customizing the blog, archive, and search pages using SeedProd

You can now customize each template using SeedProd’s drag and drop editor.

Since we want to add post excerpts to our website, hover your mouse over the ‘Blog Index, Archives, Search’ template and click on the ‘Edit Design’ link when it appears.

How to add post excerpts to your WordPress theme with SeedProd

This will load the SeedProd drag and drop builder.

To the right, you’ll see a preview of the template. By default, the blog page template will show the heading, archive, title, and all your posts.

The SeedProd drag and drop theme editor and page builder

The left-hand side shows a menu with all the different blocks you can use.

You can add new blocks by dragging them onto the page and then rearrange them by dragging them up and down with your mouse.

You can customize any block by clicking on it and then using the settings in the left-hand menu. When you make a change, the SeedProd preview will automatically update to show those changes in action.

How to customize any block in a WordPress theme

Since we want to customize the post excerpts, simply click to select the ‘Posts’ block in the live preview.

After doing that, select the content you want to show in this block using the settings in the left-hand menu.

For example, you can change the column layout, display pagination, show the featured image, and change the title tag.

How to add post excerpts to a WordPress theme without writing code

To show the post excerpt, simply click on the ‘Show Excerpt’ toggle so that it turns orange.

Once you’ve done that, you can change how many characters SeedProd shows in the excerpt by typing a new number into ‘Excerpt Length.’

Adding blog excerpts to a WordPress theme

SeedProd can also add a ‘Read More’ link to each excerpt, which will encourage readers to open the full article.

You can add or remove this link using the ‘Show Read More’ toggle.

Adding a 'Read More' button to your post excerpts

You can also replace the ‘Read More’ text with your own messaging by typing into the ‘Read More Text’ field.

When you are happy with how the post excerpt is set up, click the ‘Save’ button in the upper right corner of your screen.

Customizing the 'Read More' link in a post excerpt

You can now customize the other SeedProd templates by going to SeedProd » Theme Builder and following the same process described above.

To show the post excerpts to visitors, you first need to enable your SeedProd theme. To do this, go to SeedProd » Theme Builder and then click on the ‘Enable SeedProd Theme’ toggle so that it shows ‘Yes.’

How to enable a custom WordPress theme using SeedProd

Now, if you visit any of your blog pages, you’ll see the post excerpts live.

We hope this article helped you learn how to display post excerpts in WordPress themes. You may also want to see our guide on how to make money online blogging with WordPress and our expert picks for the best WordPress SEO plugins and tools that you should use.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Disclosure: Our content is reader-supported. This means if you click on some of our links, then we may earn a commission. See how WPBeginner is funded, why it matters, and how you can support us. Here's our editorial process.

Editorial Staff

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

The Ultimate WordPress Toolkit

Get FREE access to our toolkit - a collection of WordPress related products and resources that every professional should have!

Reader Interactions

94 CommentsLeave a Reply

  1. Syed Balkhi says

    Hey WPBeginner readers,
    Did you know you can win exciting prizes by commenting on WPBeginner?
    Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
    You can get more details about the contest from here.
    Start sharing your thoughts below to stand a chance to win!

  2. Sara Pedersen says

    Hello

    I have custom excerpt in the excerpt box for each post. They are a photo link. This has worked for several years and the photo is at the top of the post with the post link below. Suddenly the last 2 posts the excerpt photo is not posting. Any tips to fix this?

  3. Siddhesh says

    Hi,

    I can locate index.php and categories.php in my theme folder but i dont find the mentioned syntax. How do i fix this?

    -Siddhesh

  4. Francesco says

    Hi, maybe my question will sound silly to you but… I never installed WordPress on a server/host, I just suscribed and got the .wordpress.com domain, everything was automatic. So, how can I access these files? I read in the comments about the FTP protocol, which I am familiar with, but who gives the information to enter in the domain with that?

    And while we’re at it, do you suggest to install wordpress by yourself (online I see there are a lot of tutorials and seems easy to do) or continuing as I am doing on the .wordpress.com domain? Maybe one day I will buy the premium and have a direct domain, but besides that, are there any advantages in terms of functionality in installing manually?

  5. Joseph Dabon says

    Very simple, huh! But where can I find these? – index.php file, archive.php file, and category.php

    • Javier says

      Hi, you can find those files using a FTP account.

      When you get in to your server files, get in into this route:
      wp-content/themes/ your-theme-name /

      And you will find the files

  6. Tolu says

    Hi there,
    My theme doesn’t support excerpts on the homepage, i’ve enabled excerpts on the blog post and its still not showing on the homepage, i’m not a php pro so i don’t know my way around it.

    Any help would be appreciated.

  7. Sreeharsh says

    Hi, My theme doesn’t support excerpts in the posts page.
    Can you please help me to enable it to display under my page title.
    Thank you. :D

  8. javad says

    hi
    my theme have excerpts option and i enabled it

    and i want to show my post images above this excerpts on index,php

    i used Auto Post Thumbnail and Featured Image plugins

    but i dont know code to show Thumbnail above the posts

  9. Dorine Ogutu says

    Hello, I am a beginner and I am using the Nucleare theme. I can’t find the index.php file. Please help.

    Desparate

    • Constantine says

      You will need to open either the terminal or your cPanel (if you’re using a shared host and it provides this feature), find your wordpress directory, and under the directory there’ll be a folder called “wp-content”, then enter “themes”, and then find the one folder that the name is your currently using one.

      If you’re using a terminal,

      type

      cd /…/…/wp-content/themes/

      and use cd to enter your themes folder that’s where your index.php lies. “…” here means your previous directory of your wordpress root directory, you will need to find that yourself and figure out what it is first you installed your wordpress on your server.

      Not sure if this helps since it’s been awhile, i’m a newbie myself so hope it might help you and others.

  10. Chris says

    I’ve just updated to a responsive theme and all the posts were in excerpt form. From reading this column I was able to change them to full content. What I’d really like is to have my current post in full content mode, so my followers see it as soon as they get on my site, and the older posts in excerpt form, so that the site loads more quickly. Is this possible? Thanks for your help!

    • James says

      @Chris, I’m trying to do the same thing. Did you figure this out (how to show the latest post in full mode, and the rest as “excerpts”)?

  11. Gaurav says

    I am using custom excerpts from wordpress. It is displayed on my home page. But it is not displayed on my original post. I want to display this excerpt just before my actual post with different font styles and font colour.
    Is there a way to do that ?

  12. pase says

    Trying to display a list blog excerpt summary after the blog introduction. Created a custom template for the blog front page. How can I call the blog excerpt summary page from the custom template?

  13. Drew says

    you know there’s a plugin that can resolve this. with ANY tutorials, it’s never 100% clear because there are files or scripts that are different or not available…pending multi-site install or single-site install etc etc. even with your simple instructions, i couldn’t find the proper tag to replace…so i just downloaded a plugin and 1 minute later…fixed.

    • Dawn Youngs says

      I am working in the Organization Theme on WordPress.com. I have managed to set up a static Home Page and a Blog Page which displays my recent posts. I have chosen the summary options for each article in my feed, but when I publish the page I see the full text of each post on my Blog Page. I have set featured images and I have Written Custom Excerpts for my pages and I want a Blog Page displays the excerpts and images with a link to the post page. How in the world do I do this? What is going on with no change between summary and full in the reading section of my settings? Is this an issue with the theme or a general problem in WordPress? I just want a clean simple page that shows a series of excepts for a weekly report, please help!

      By the way, I do not know how to open my files, I cannot even find my file directory, and wonder if it is hidden from me because I am in .com and not hosting the site myself like in .org?

  14. Rahul says

    I have used experts for some of my posts but i found a problem, special signs like,”! are not rendering properly and there’s some utf-8 problem… can you guys conform whether its a WordPress problem or my hosting. Though the problem only causes in my excerpts (summary) but the article with “are opening up fine” and can be read properly. If its a WordPress issue please let us know if there’s any solution to it.

    Thanks,
    RAHUL

  15. Seth says

    I am using the twentythirteen template. None of the files mentioned have “the_content” in them. Also, there is no longer a “loop.php” file. (I only want my archives – tag and category to have the excerpt).

    This is what I see in the archives.php and category.php:

    Changing ‘content’ to ‘excerpt’ also doesn’t seem to do the trick.

      • Imoteda says

        whenI change it in content.php, I can no longer see the full posts on any pages. Clicking on the continue reading link gives me the same excerpt

        • Jenn says

          I’m having the same issue. I successfully changed the_content to the_excerpt. This makes my blogroll successfully show the excerpt instead of the full post. However, when I click into a post, only the excerpt is shown. Is there a way to modify the single.php file to guarantee the entire post content is displayed when viewing a single post? Any advice is really appreciated!

  16. lester says

    finally . . . . FINALLY !!

    i FINALLY found an answer to a problem with wordpress.

    for the love of God and flowers and good food and wine!

    thank you !! thank you !! thank you !!

  17. Daniel Z says

    Thanks! This worked like a gem in the inStyle theme by Elegant Themes. I actually had to edit the code in home.php, but thanks for leading me in the right direction.

  18. Trenton Miller says

    This is great, it’s working for me now. I would like to have the images that I have at the beginning of blog posts that I inserted via HTML, not the Featured Image method. On the blog posts where the image is within the first 55 characters, or whatever you set it to, how can I get it to appear? Is there something extra to add into functions.php?

    • Editorial Staff says

      Automatic excerpts do not show HTML elements. You have two options. Either write a custom excerpt using the excerpts field in your write panel. If you don’t see it, then look at the top right hand corner “Screen Options”. The other option is to use the_content, and utilize the more tag.

      Admin

      • Caroline says

        Ouuch – thanks for your comment. I was searching for hours for this information. Such simple but well hidden if you don’t know how to add individual excerpts. Was looking to change the php files but did not dare for missing experience. All set now, thanks again.

  19. Dr. Erika says

    This is AWESOME. Seriously thank you wpbeginner for all your articles.

    Any idea of how to add pictures to the displayed excerpts?

  20. Bridget says

    OMG dude, thank you so much for this! I literally spent like 45 minutes trying to figure this out with an elegant theme, only to find that your solution took about 12 seconds. Gahh! Oh well, all is well that ends well! Thanks!

    • Deepak says

      Hye Sudip,
      Open any post to edit. On the top of it you will find the screen option. Click on that , then you will see so many options there. Then go to the excerpt option , check on that option. Then below the title and content box, you can see the excerpt box .You can write your excerpt content there.

  21. Jay Madisson says

    Hi,

    Im just wondering, where can I find the (Open your index.php file, archive.php file, and category.php file.)? Sorry for being a noob in HTML :(

    Cheers,

    Jay MAdisson

      • Jay Madisson says

        Hi, Im using Easel Theme, I opened index.php and archive.php but I could not find the code
        :(

    • Jerry says

      I’m sorry, are we speaking here of files that reside on my computer? I thought the whole blog was done online. I have no software for WordPress on my computer. I have not downloaded anything. What am I missing? Does one have to know HTML code to blog?

  22. Rich says

    Hello, I’m using the 2010 theme on the blog and it didn’t change to when I replaced content with the word excerpt. Is it something I’m leaving out??

  23. Emma says

    I am using the new twenty twelve theme to base a child theme on and cannot get excerpts to work at all. I looked in all the files you suggest above, but cannot find
    in any of them. Similar to Heather I have imported my blog from blogger too…
    There also doesn’t seem to be a loop.php file
    Help!

      • Emma says

        Thanks for this – I changed entry-content in content.php to

        and it has worked!

        The problem I have now is how to get the excerpt text to wrap around the thumbnail, which I would like to float either right or left.

        Any ideas?

        Thanks

  24. Erin says

    Maybe you can help me here. There is no in any of the files you listed above; index.php, archive.php, or category.php. This is the closest thing that I see (from my index.php file).

    Can I change something in this code or add some new code?

    • Editorial Staff says

      If none of those files exist, that means you are using a child theme. You will have to utilize the hooks in the parent theme framework. We don’t write tutorials specific for theme frameworks.

      Admin

  25. Chris says

    I’m using the twentyeleven theme and “the_content” does not appear in any of the three files mentioned. I’m stumped.

  26. HemantKokcha says

    I am trying to get excerpt but i cant get excerpt by both of your method so tell me correctly how wll i get excerpt in traction theme.

    • wpbeginner says

      @HemantKokcha There is only one method… changing the_content to the_excerpt… The other function is to controlling excerpt length and the excerpt read more. If its not showing in your theme, then perhaps try contacting the theme author. Because this is the only way of doing it.

  27. clwdk says

    Hi there,

    I am using the newest version of the twenty ten theme and am not sure where to change the <?php the_content(); ?> to <?php the_excerpt(); ?>. There is nothing in the index.php as far as I can see. Am I overlooking something? Thanks for any help you can give me.

    CARL

  28. wpbeginner says

    @Ibadullah You have to add this code in your theme’s functions.php file. It should work perfectly fine because this is the way to do it, and we are doing it on our site.

  29. Ibadullah says

    @wpbeginner@Ibadullah I am saying when I add the number in post excerpt – I just see the same number on main page. such as I type 50 in the post excerpt field it show Category name : APPLE and instead of content it show number 50

  30. nescafespk says

    <a href=”http://www.games-masti.com” title=”Play Online Games”>Play Online Games</a>

    This is very nice trick and thanks for help us and thanks for the whole team of the word press team

  31. Carl says

    Great – thanks. Was looking for a simple solution. How do you include a Read more… link after the excerpt also though?

  32. Heather says

    Thank you for the article. I made the changes in all 3 documents and nothing changed. All of the posts on the blog I am working on were imported from Blogger, could that be an issue or perhaps the theme itself? I am stumped!

  33. ely says

    I can’t seem to find any files containing “php” anywhere on my wp dashboard.

    I’m using dreamhost and the wp 2010 theme. The only files I can find that allow me to edit code are .css files.

    I’m going crazy trying to find a way to create excerpts!

  34. Technonesia says

    My acquaintance is asking for this and I remember to ever saw it here. Thanks, I will forward this to him.

  35. chris says

    Great, I was just looking for an easy way to make use of the excerpts field and be able to define a small intro for each post to be displayed. Thanks a lot.

Leave A Reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.