OK, I'm no longer a beginner, but sometimes I want my website to work like one. We all do. Maybe we're building a complex blog or managing a busy news site and get overwhelmed by long posts cluttering the homepage, and we seek clarity in simplicity. My go-to tool for clean presentation is a WordPress feature that comes in a memorable text box: the post excerpt. It lets you show a custom summary instead of the full post, offering that neat, controlled look every site owner appreciates.
Think of the excerpt as your content's best-dressed ambassador. It's the short, compelling preview that appears on your blog archive, search results, and category pages. Instead of automatically pulling the first 55 words from your post—which might cut off mid-sentence or include a formatting tag—a manual excerpt gives you complete control. You can write a tailored summary that encourages clicks, improves your site's scannability, and keeps your design looking sharp. This is especially useful when using a sophisticated website builder for WordPress where design and content presentation are tightly integrated.
Setting up excerpts is straightforward, but it relies on your WordPress foundation being solid. The feature is built into the post editor itself. However, if you're ever troubleshooting or need to manage your site's data directly, understanding your database is key. For instance, if excerpts weren't saving properly, a deeper check might involve looking at the wp_posts table through a tool like phpMyAdmin for your WordPress database. While you likely won't need to do this daily, it's good to know where your content lives.
How to Set a Manual Excerpt in WordPress
Ready to take control of your post previews? Here’s a simple, step-by-step guide to using manual excerpts. This process works with the default Block Editor (Gutenberg) and most page builders.
- Step 1: Edit or Create a Post: Go to your WordPress admin dashboard and open an existing post or create a new one.
- Step 2: Locate the Excerpt Panel: In the post editor, look on the right-hand sidebar. If you don't see the 'Excerpt' panel, click on the 'Settings' gear icon, then ensure the 'Post' tab is selected. Scroll down until you find the 'Excerpt' box. If it's still hidden, click the three vertical dots in the top right corner of the editor, select 'Preferences', go to the 'Panels' tab, and make sure 'Excerpt' is enabled.
- Step 3: Write Your Summary: Click into the Excerpt text area. Write a concise, engaging summary of your post. Aim for 1-2 sentences or around 155 characters to ensure it displays well in search results and on your theme. This text is plain, so avoid HTML.
- Step 4: Update or Publish: Once you've written your perfect excerpt, simply click 'Update' (for existing posts) or 'Publish' (for new ones). Your theme will now use this custom text instead of the automatically generated one.
Remember, not all themes display excerpts in the same way. Some might show the full excerpt you write, while others might trim it to a specific length. It's a good idea to check how your excerpt looks on your live site after setting it.
How do I change the length of a WordPress excerpt?
You can change the excerpt length by adding a small piece of code to your theme's functions.php file. This involves using the `excerpt_length` filter. For example, adding `add_filter( 'excerpt_length', function() { return 30; } );` would change it to 30 words. Always use a child theme when making such code changes to prevent them from being overwritten during theme updates. This method controls the automatic excerpt length; manual excerpts you write are unaffected.
If coding isn't your preference, many plugins offer excerpt control with a simple interface. These plugins often provide additional options, like changing the excerpt 'read more' text or allowing HTML in excerpts. For sites that display a lot of structured data, such as product comparisons or feature lists, pairing excerpt controls with a responsive table plugin for WordPress can create very clean and readable archive pages.
Can I use HTML in a WordPress excerpt?
By default, the WordPress excerpt field strips out all HTML tags for security and consistency. The text you enter is treated as plain text. If you need to include basic formatting like bold text or a hyperlink in your post preview, you have a couple of options. One method is to use a plugin specifically designed to allow HTML in excerpts. These plugins modify the underlying function to preserve your tags.
Another common approach is to use a custom field or a dedicated theme option for featured post summaries, which often support formatted text. If your goal is to link to external resources from your summary, note that the excerpt field itself won't support the HTML. You would need to manage that through your theme's template files or a plugin. For guidance on creating links elsewhere, you can read about how to link to a PDF file in WordPress for similar principles of asset linking.
What's the difference between an excerpt and a meta description?
While both are short summaries, they serve different masters. A WordPress excerpt is primarily for on-site presentation, controlled by your theme to display on blog rolls, archive pages, and sometimes in RSS feeds. A meta description is an HTML tag meant for search engines and social media; it appears in Google's search results and when a link is shared on platforms like Facebook.
| Feature | WordPress Excerpt | Meta Description |
|---|---|---|
| Primary Purpose | On-site user experience | Search engine & social media snippet |
| Controls Display On | Your website's theme templates | Search engine results pages (SERPs) |
| Best Practice Length | ~155 characters (theme dependent) | ~150-160 characters |
| Often Set Via | Excerpt box in post editor | SEO plugin (Yoast SEO, Rank Math, etc.) |
It's smart to optimize both, but they can be different. Your excerpt should entice a visitor already on your site, while your meta description should convince someone on Google to click through. For comprehensive SEO, using a dedicated SEO plugin is highly recommended, as it helps you manage meta descriptions separately from post excerpts.
Why is my custom excerpt not showing?
If your custom excerpt isn't showing, the first place to check is your theme. Some themes are built to always display the full post content on archive pages and simply ignore the excerpt field. You can test this by switching to a default theme like Twenty Twenty-Four temporarily. If the excerpt appears, your main theme needs configuration. Secondly, ensure you're actually looking at an archive page (like a category or blog page) and not a single post page, where the full content is meant to show.
Another culprit could be a plugin conflict. Deactivate your plugins one by one to see if one is overriding the theme's standard excerpt function. Also, double-check that you've saved the excerpt correctly in the post editor panel. If your site structure involves complex categorization, remember that a post's visibility on different lists is also governed by its WordPress category assignments, but this typically affects whether the post appears at all, not the excerpt display itself.
How can I add a 'Read More' link to my excerpt?
Most WordPress themes automatically add a 'Read More' or 'Continue Reading' link after the excerpt. The style and text of this link are usually controlled by your theme's styles and translation files. If you want to change the text of this link, you can often do so by adding a filter to your child theme's functions.php file using the `excerpt_more` filter. For example: `add_filter( 'excerpt_more', function() { return '... [Your Custom Text Here]'; } );`.
If your theme doesn't add this link automatically, you might need to edit your theme's template files (like content.php or archive.php) to insert the `the_permalink()` function within a link tag. For those less comfortable with code, many excerpt management plugins include an option to customize or add the 'Read More' link with a simple text field. Understanding how to add hyperlinks in WordPress