SEO ~26 min 5,149 words

WordPress Generate Excerpt From Content: Complete Guide

Understanding WordPress Excerpt Generation

What Is Excerpt Generation in WordPress?

WordPress excerpt generation is the process of creating a shortened, summarized version of post content that appears in specific locations on your site. An excerpt is a brief text snippet—typically 55 words by default, though this is customizable—that represents the full post without displaying the entire content. WordPress can generate excerpts in two ways: automatically from your post content, or manually through an excerpt field you fill in yourself.

When you generate an excerpt automatically, WordPress pulls text directly from the beginning of your post's content, removes any HTML tags, and truncates it at a specified word count. This differs fundamentally from manually entering an excerpt, where you have complete control over what text appears and how it's phrased.

Why Excerpt Generation Matters

Excerpt generation serves multiple critical functions across your WordPress site:

  • Archive and listing pages: Excerpts allow blog archives, category pages, and search results to display multiple posts without overwhelming visitors with full content. This improves page scanning and helps users quickly identify relevant articles.
  • User experience: Instead of displaying entire posts on index pages, excerpts create a cleaner, more organized layout that encourages browsing and navigation rather than forcing readers through complete content immediately.
  • Performance: Showing excerpts instead of full content reduces the amount of HTML and text rendered on listing pages, which can improve page load times, particularly on sites with many posts.
  • SEO and social sharing: Search engines and social media platforms use excerpts to display preview text. A well-generated excerpt improves how your content appears in search results and when shared on social networks.
  • Content consistency: Automatic excerpt generation ensures every post has some descriptive text, preventing blank spaces or missing descriptions on archive pages.
  • Readability control: By limiting the length of displayed text, excerpts force you to write compelling introductions that hook readers and encourage them to click through to the full post.

How WordPress Excerpt Generation Works

WordPress handles excerpt generation through a combination of core functions and hooks. Understanding this process helps you control how excerpts appear across your site.

Automatic Excerpt Generation

When you do not manually enter an excerpt, WordPress uses the wp_trim_excerpt() function to automatically generate one. This function follows a specific process:

  1. It retrieves the post content from the database.
  2. It removes all HTML tags, shortcodes, and other formatting.
  3. It strips out any embedded media or special characters.
  4. It counts words and truncates the text at the default word limit (55 words by default).
  5. It adds an ellipsis ("...") or custom more text to indicate the excerpt has been cut off.
  6. It applies any filters or customizations you have configured.

The key point: automatic excerpts are generated on-the-fly from your actual post content. They are not stored separately in the database unless you explicitly save them.

Manual Excerpt Entry

In the WordPress post editor, you will find an "Excerpt" field below the main content area (in the Classic Editor) or accessible through the post settings panel (in the Block Editor). When you manually enter text in this field, WordPress stores it separately and uses this custom excerpt instead of generating one automatically. This gives you complete control over what appears on archive pages.

The Role of the Excerpt Field

The excerpt field in WordPress is a dedicated meta field stored in the post metadata table. When present, it takes priority over automatically generated excerpts. This means:

  • If you fill in the excerpt field, WordPress displays that text on archive pages.
  • If you leave the excerpt field empty, WordPress generates an excerpt from your post content.
  • The excerpt field is completely optional—you can leave it blank for all posts and rely on automatic generation.

Where Excerpts Appear

Excerpts display in several locations by default, depending on your theme and configuration:

  • Blog archive pages: The main blog index showing recent posts.
  • Category and tag archives: When viewing posts filtered by taxonomy.
  • Search results: When displaying search result listings.
  • Custom post type archives: Any archive pages for custom post types configured to use excerpts.
  • RSS feeds: If your site is configured to show excerpts in feeds instead of full content.
  • Homepage: If your homepage is set to display a posts list rather than a static page.

The specific locations where excerpts appear depend entirely on your theme's template files and how they are coded. Some themes display excerpts everywhere possible; others only show them on specific page types.

Technical Implementation: Core Functions

WordPress provides several core functions for working with excerpts:

the_excerpt(): This template tag displays the excerpt for the current post in the loop. It automatically applies filters and formatting. When called, it outputs the excerpt directly to the page.

get_the_excerpt(): This function retrieves the excerpt as a string without displaying it. This allows you to store it in a variable, modify it, or use it in conditional logic before output.

wp_trim_excerpt(): This is the core function that generates automatic excerpts. It accepts the post content as input and returns a trimmed version. You can call this function directly if you need to generate an excerpt from arbitrary text.

excerpt_length filter: WordPress provides a filter hook called excerpt_length that allows you to change the default word count for automatically generated excerpts. By adding a custom function to this filter, you can set different lengths for different post types or contexts.

excerpt_more filter: This filter controls the text appended to the end of truncated excerpts. By default, it is "[...]", but you can customize it to display "Read More", a link, or any other text.

Excerpt Generation vs. Content Display

A critical distinction exists between excerpt generation and full content display. When you use the_excerpt(), WordPress does not display your post content. Instead, it shows only the excerpt. If you want to display full post content on archive pages, you must use the_content() instead, which displays the entire post body.

Many WordPress users confuse these two functions. Using the_content() on archive pages will display every word of every post, making the page extremely long and difficult to navigate. Using the_excerpt() keeps archive pages concise and organized.

How Excerpt Length Works

By default, WordPress counts words, not characters. When the excerpt_length filter is applied, it specifies the maximum number of words to include. WordPress counts from the beginning of the post content and stops at the nearest word boundary after reaching the limit.

For example, if you set the excerpt length to 20 words and your post begins with "This is a sample post about WordPress excerpt generation and how it works on your website," WordPress will display approximately the first 20 words and then truncate, displaying something like "This is a sample post about WordPress excerpt generation and how it works on your..."

The exact truncation point depends on the word count setting and where natural word breaks occur in your content.

Excerpt Stripping and Filtering

WordPress excerpt generation automatically removes several elements from your post content:

  • All HTML tags (paragraphs, bold, italic, links, etc.)
  • Shortcodes and their output
  • Embedded media (images, videos, audio)
  • Custom formatting and styling
  • Whitespace and line breaks

This stripping process ensures the excerpt is plain text that displays cleanly on archive pages without breaking layouts or introducing unwanted formatting. However, it also means that if your post content includes important formatting or media, the excerpt will not reflect that.

This is one reason many content strategists prefer manually entering excerpts for important posts—it allows you to craft a specific message that may differ from simply truncating the beginning of your content.

The Relationship Between Excerpts and the More Tag

WordPress includes a "More" tag (inserted via the editor) that allows you to specify where post content should be truncated on archive pages. When you insert a More tag in your post, WordPress uses the text before that tag as the excerpt, even if you have not manually filled in the excerpt field.

The More tag takes priority over automatic excerpt generation. If your post contains a More tag, WordPress will use the content before it as the excerpt, regardless of the default word count setting. This gives you precise control over excerpt length on a per-post basis without needing to manually enter text in the excerpt field.

Excerpt Availability Across Post Types

By default, only the standard "post" post type has excerpt support enabled in WordPress. Pages, attachments, and other post types do not display an excerpt field in the editor by default. However, you can enable excerpt support for any post type using the post_type_supports() function or by adding it to the post type registration arguments.

This means excerpt generation is most commonly used for blog posts, but it can be extended to any custom post type you create, such as portfolio items, testimonials, products, or events.

How to Generate Excerpts from Content in WordPress: Complete Strategy and Implementation

WordPress provides multiple methods to generate excerpts from your post content, ranging from automatic generation to manual creation. Each approach has distinct advantages depending on your site structure, theme requirements, and content management workflow. Understanding these methods allows you to choose the most appropriate solution for your specific needs.

Method 1: Use WordPress's Automatic Excerpt Generation

WordPress automatically generates excerpts from your post content without requiring manual input. When you do not provide a custom excerpt, WordPress extracts the first 55 words from your post content and removes all HTML formatting, shortcodes, and tags.

How automatic generation works:

  • WordPress reads the post content sequentially from the beginning
  • It counts words until reaching the default limit (55 words)
  • It strips all HTML tags, formatting, and embedded media
  • It appends an ellipsis (...) at the end
  • The result displays wherever you call the_excerpt() in your theme

Implementation steps:

  1. Ensure your theme or template calls the_excerpt() rather than the_content() in archive pages, search results, or home page templates
  2. Verify that you have not manually entered text in the Excerpt field for posts you want auto-generated excerpts on
  3. Test the output by visiting your archive pages to confirm excerpts appear correctly
  4. Check that your theme's functions.php does not override the default excerpt behavior with custom filters

The automatic approach requires no additional setup and works immediately. However, the 55-word default length may not suit every site, and the automatically truncated text sometimes cuts off mid-sentence or removes important context.

Method 2: Customize Excerpt Length Globally

You can modify the default excerpt length from 55 words to any number you prefer by adding a filter to your theme's functions.php file. This change applies site-wide to all automatically generated excerpts.

Add this code to functions.php:

function custom_excerpt_length( $length ) { return 20; } add_filter( 'excerpt_length', 'custom_excerpt_length' );

Replace 20 with your desired word count. This filter hooks into WordPress's excerpt generation process and changes the cutoff point before the ellipsis is added.

Customizing the excerpt ending:

By default, WordPress appends three dots (...) to truncated excerpts. You can change this using the excerpt_more filter:

function custom_excerpt_more( $more ) { return ' … Read More'; } add_filter( 'excerpt_more', 'custom_excerpt_more' );

This example replaces the ellipsis with a "Read More" link, though you can use any text or HTML you prefer.

Important considerations:

  • Changes to functions.php apply globally to all posts and custom post types using excerpts
  • If you switch themes, you may need to reapply these customizations if the new theme uses a different functions.php
  • These filters only affect automatically generated excerpts, not manually entered ones
  • Very short excerpt lengths (under 10 words) may result in incomplete or unclear text

Method 3: Manually Create Custom Excerpts

The most reliable way to control excerpt content is to write custom excerpts manually. WordPress displays custom excerpts instead of auto-generated ones, giving you complete control over what appears in archives and search results.

Where to find the excerpt field:

  • In the block editor (Gutenberg): Look for the Excerpt panel in the document settings on the right sidebar. If not visible, click the three-dot menu and select "Preferences" to enable it.
  • In the classic editor: The excerpt field appears below the main content editor as a text box labeled "Excerpt"
  • The field accepts plain text or limited HTML formatting depending on your editor version

Best practices for manual excerpts:

  • Write excerpts as standalone summaries rather than direct quotes from your content
  • Include your primary keyword naturally if it appears in the post
  • Keep length between 50 and 160 characters for optimal display in search results and social media
  • Make the first sentence compelling to encourage clicks
  • Avoid duplicating the same excerpt across multiple posts
  • Review excerpts periodically to ensure they still accurately represent updated content

Manual excerpts require more effort but provide superior control and often result in better click-through rates because they are specifically crafted for your audience rather than algorithmically truncated.

Method 4: Generate Excerpts Programmatically in Custom Code

If you need to generate excerpts dynamically within custom templates or plugins, you can use WordPress functions directly in your code.

Using wp_trim_excerpt():

$excerpt = wp_trim_excerpt( $text ); echo $excerpt;

This function accepts a string and returns it trimmed to the excerpt length set by your excerpt_length filter. If you pass an empty string, it uses the post content instead.

Generating excerpts outside the loop:

When working outside the main post loop, you need to specify which post to extract the excerpt from:

$post_id = 42; $excerpt = wp_trim_excerpt( '', $post_id ); echo $excerpt;

Pass the post ID as the second parameter to generate an excerpt for a specific post.

Custom excerpt generation with get_the_excerpt():

$post_id = 42; $excerpt = get_the_excerpt( $post_id ); echo $excerpt;

This function returns the custom excerpt if one exists, or generates one from the content if not. It respects all filters and customizations you have applied.

Method 5: Strip Content and Create Excerpts with Custom Filters

For more advanced control, you can create custom filters that modify how excerpts are generated from your content.

Remove specific content types from excerpts:

function remove_shortcodes_from_excerpt( $text ) { $text = strip_shortcodes( $text ); return $text; } add_filter( 'the_excerpt', 'remove_shortcodes_from_excerpt' );

This filter removes all shortcodes before the excerpt is displayed, preventing broken output from gallery, video, or other dynamic content shortcodes.

Remove images and formatting:

function clean_excerpt( $text ) { $text = strip_tags( $text ); return $text; } add_filter( 'the_excerpt', 'clean_excerpt' );

This removes all HTML tags from the excerpt, leaving only plain text. Use this if your theme displays excerpts in a context where formatting could cause layout issues.

Common Mistakes to Avoid

Mistake 1: Confusing the_excerpt() with the_content()

These functions serve different purposes. the_excerpt() displays the excerpt (custom or auto-generated), while the_content() displays the full post body. Using the wrong function means your excerpt customizations will not appear. Check your theme's archive.php and search.php templates to confirm they call the_excerpt().

Mistake 2: Leaving the excerpt field blank expecting automatic generation

Some themes or plugins disable automatic excerpt generation. If you leave the excerpt field empty and nothing displays, check whether your theme requires manual excerpts or if a plugin is filtering the excerpt output. Always test your setup by creating a test post with and without a custom excerpt.

Mistake 3: Using the_content() for archive pages

Displaying full post content on archive pages creates extremely long pages that load slowly and provide poor user experience. Always use the_excerpt() on archives, search results, and category pages. Reserve the_content() for single post views only.

Mistake 4: Setting excerpt length too short

Excerpt lengths under 15 words often fail to convey meaningful information about your post. While shorter excerpts save space, they frequently result in incomplete sentences or lost context. Test different lengths with your actual content to find the balance between space efficiency and clarity.

Mistake 5: Not accounting for HTML in excerpt generation

If your post content contains HTML tags, bold text, links, or other formatting, automatic excerpt generation strips all of this. The resulting text may appear awkward or lose emphasis. Consider whether your content structure requires manual excerpts to preserve important formatting or whether plain text excerpts are acceptable.

Mistake 6: Applying filters globally without testing

When you add custom excerpt filters to functions.php, they affect every post on your site. Always test changes on a staging environment or development site first. Unintended consequences could include excerpts appearing in unexpected locations or breaking layout on pages you did not anticipate.

Mistake 7: Overcomplicating excerpt generation

Some developers create elaborate custom functions to generate excerpts when WordPress's built-in methods would suffice. More complex code introduces more potential for bugs and maintenance issues. Start with automatic generation or manual excerpts, and only add custom logic if you have a specific requirement that built-in methods cannot address.

Mistake 8: Forgetting to update excerpts when content changes

If you use manual excerpts and later update your post content significantly, your excerpt may no longer accurately represent the post. Establish a workflow to review and update excerpts when you make major content revisions.

Choosing the Right Method for Your Site

Method Effort Required Control Level Best For Drawbacks
Automatic Generation (Default) None Low Small blogs, simple content, rapid publishing Inconsistent quality, may cut off mid-sentence, limited customization
Custom Excerpt Length Minimal (code change) Medium Sites needing consistent excerpt length across all posts Still depends on content structure, applies to all posts uniformly
Manual Excerpts High (per post) Maximum Content-focused sites, SEO-optimized blogs, professional publications Time-consuming, requires discipline to maintain consistency
Programmatic Generation Medium (development) High Custom themes, plugins, advanced implementations Requires PHP knowledge, maintenance responsibility
Custom Filters Medium (development) High Sites needing specific content removal or modification Complex logic can cause performance issues or unexpected behavior

Most WordPress sites benefit from a hybrid approach: use automatic generation as a fallback for posts without custom excerpts, but manually create excerpts for important content like homepage featured posts or high-traffic articles. This balances effort with quality.

SEO content setup

Plan and publish SEO content with AutoSEO

Enter your site to scan it and build a keyword plan. Review your articles and connect your site for publishing. $39/mo per website.

Review before publishing Cancel anytime 30-day money-back

Tools, Workflows, and Verification Methods

Manual Excerpt Generation Workflows

WordPress provides several legitimate approaches to generating excerpts, each suited to different editorial workflows and technical skill levels. Understanding which workflow matches your needs prevents wasted effort and ensures excerpts serve their intended purpose across your site.

The most straightforward workflow involves using WordPress's built-in excerpt field. When editing a post in the Block Editor or Classic Editor, the excerpt metabox appears below the content editor. You type your excerpt directly into this field—typically 150 to 160 characters, though this varies by theme and design. This manual approach gives you complete control over messaging and allows you to craft excerpts that differ meaningfully from your opening content. Many publishers prefer this method because it lets them highlight key points, add calls-to-action, or adjust tone for different contexts like archive pages or email newsletters.

A second workflow uses the programmatic approach through custom code. Developers can create custom post types with excerpt support, filter excerpt length using the excerpt_length hook, or modify excerpt output using the excerpt_more hook. This workflow suits sites where consistency matters more than manual customization—for instance, a news site where all excerpts should follow the same truncation rules. The code lives in your theme's functions.php file or a custom plugin, making it version-controlled and maintainable across site updates.

A third workflow combines automatic and manual elements. WordPress automatically generates an excerpt from your post content if you leave the excerpt field empty. Many sites use this as a fallback while encouraging editors to write custom excerpts for important posts. This hybrid approach balances efficiency with quality control.

For sites using page builders like Elementor, Beaver Builder, or Gutenberg blocks, excerpt workflows often integrate with the builder's interface. Some builders include dedicated excerpt fields or allow you to specify which content block should serve as the excerpt source. This keeps your workflow inside the page builder rather than requiring manual field switching.

Checking Excerpt Output Across Your Site

After generating or modifying excerpts, you need reliable methods to verify they appear correctly in all contexts. WordPress displays excerpts in multiple locations, and checking each one ensures consistency.

Archive and category pages are the primary display location for excerpts. Visit your blog archive, category pages, tag pages, and search results pages to see how excerpts render. Check that the excerpt length matches your expectations, that it displays complete sentences without abrupt cuts mid-word, and that any HTML formatting (bold, italics, links) appears correctly. Take note of whether the "Read More" link appears and whether it functions properly.

Homepage and featured content areas often display excerpts differently than archives. If your theme shows recent posts on the homepage, visit that page and verify excerpts appear as intended. Some themes display full content on the homepage but excerpts on archives—confirm this behavior matches your design.

Feed readers and RSS subscriptions may display excerpts or full content depending on your settings. Visit Settings → Reading in WordPress admin and check whether "For each article in a feed, show" is set to "Summary" (excerpt) or "Full text" (content). Then subscribe to your RSS feed using a feed reader application to see how excerpts appear to subscribers.

Search engine results pages sometimes display excerpts as meta descriptions. While WordPress doesn't directly control this (search engines do), well-written excerpts improve the likelihood of favorable SERP display. Use Google Search Console or Bing Webmaster Tools to see how Google displays your pages in search results.

Mobile devices and responsive design require separate verification. Excerpts that fit perfectly on desktop may break awkwardly on phones or tablets. Test your site using browser developer tools or actual mobile devices to ensure excerpts remain readable and properly formatted across screen sizes.

Programmatic verification using code helps automate checks. A simple PHP script can loop through all posts, retrieve their excerpts using get_the_excerpt(), and verify they meet length requirements or contain expected content. This approach works well for large sites where manual checking becomes impractical.

WordPress Functions and Hooks for Excerpt Work

Several WordPress functions and hooks directly support excerpt generation and customization. Understanding these tools helps you implement custom excerpt logic effectively.

The get_the_excerpt() function retrieves the excerpt for a post outside the Loop. This function accepts a post ID or post object and returns the excerpt text. If no manual excerpt exists, WordPress generates one from the post content automatically. This function is essential for displaying excerpts in custom templates or plugin code.

The the_excerpt() function displays the excerpt directly within the Loop, applying any active filters. Unlike get_the_excerpt(), this function outputs the excerpt immediately rather than returning it for further processing.

The excerpt_length filter controls how many words appear in auto-generated excerpts. By default, WordPress truncates auto-generated excerpts to 55 words. You can modify this value using a custom filter function in your theme or plugin.

The excerpt_more filter controls the text appended to truncated excerpts. By default, this is a simple ellipsis ("…"). You can replace it with a "Read More" link or custom text using this filter.

The wp_trim_excerpt() function performs the actual truncation of post content into an excerpt. While less commonly used directly, understanding this function helps when you need fine-grained control over excerpt generation logic.

Third-Party Tools and Plugins

While WordPress's built-in excerpt functionality covers most needs, several plugins extend or simplify excerpt workflows for specific use cases.

Yoast SEO includes excerpt management as part of its larger SEO toolkit. The plugin displays a snippet preview showing how your post might appear in search results, with the excerpt (or meta description) prominently featured. This helps you write excerpts optimized for search visibility. The plugin also provides character count feedback and readability analysis.

Rank Math similarly integrates excerpt management with SEO features. It shows a preview of how your post appears in Google search results and helps you craft excerpts that encourage clicks.

Advanced Excerpt is a lightweight plugin focused specifically on excerpt customization. It allows you to exclude certain content types from auto-generation, customize the excerpt length per post type, and control the "Read More" link text and styling.

Better Excerpts provides a visual interface for managing excerpt settings and includes options for preserving formatting, excluding shortcodes, and customizing truncation behavior.

For developers, custom plugins built specifically for your site often provide the most control. A simple plugin can implement your exact excerpt logic without adding bloat or conflicting with other tools.

FAQ

What's the difference between an excerpt and a summary?

In WordPress terminology, an excerpt is a specific field designed to hold a brief text representation of a post. A summary is a broader term that can refer to any shortened version of content. WordPress excerpts are typically 55 to 160 words and appear in specific locations like archives and feeds. A summary might be longer, shorter, or formatted differently depending on context. The excerpt field in WordPress is standardized and managed through the excerpt metabox or programmatically through functions like get_the_excerpt(). Summaries are often custom implementations created by themes or plugins for specific purposes.

Why does WordPress automatically generate an excerpt when I don't write one?

WordPress automatically generates an excerpt from your post content to ensure every post has some text representation for archive pages and feeds, even if you haven't manually written an excerpt. This fallback behavior prevents blank spaces in your site's layout. The automatic excerpt takes the first 55 words of your post content (by default), removes any HTML tags, and appends an ellipsis. You can disable this behavior by leaving the excerpt field empty and using custom code to display full content instead, but most sites benefit from having excerpts available as a default option.

Can I use HTML or formatting in excerpts?

WordPress excerpts can technically contain HTML, but the default excerpt display strips most HTML tags for simplicity and consistency. If you write an excerpt with bold text, links, or other formatting in the excerpt field, WordPress removes these when displaying the excerpt on archive pages. However, you can customize this behavior using filters. The wp_trim_excerpt() function applies the excerpt_more filter, which you can modify to preserve specific HTML tags. Alternatively, you can create a custom excerpt display function that intentionally preserves formatting. For most sites, keeping excerpts as plain text is simpler and more reliable across different themes and contexts.

How do I display excerpts on my homepage if my theme shows full content?

First, check your theme's documentation or customizer settings for an option to display excerpts instead of full content on the homepage. Many themes include this setting under Customize → Homepage Settings or similar. If your theme doesn't provide this option, you can use custom code. Edit your theme's index.php or home.php template file and replace calls to the_content() with the_excerpt(). Alternatively, create a child theme to avoid losing changes during theme updates, and modify the template there. For non-developers, using a page builder or plugin that includes homepage excerpt options may be simpler than editing template files.

What happens to excerpts when I change my excerpt length setting?

Changing your excerpt length setting affects only newly generated excerpts from post content. Existing manual excerpts you've written in the excerpt field remain unchanged. If you've been relying on WordPress's automatic excerpt generation and you increase the excerpt length, old posts won't automatically regenerate with the new length—only new posts will use the new length. To update existing auto-generated excerpts, you would need to delete the excerpt field for those posts (if you manually wrote them) or use a plugin or script to regenerate them. Manual excerpts are always preserved exactly as written, regardless of length settings.

Can I have different excerpt lengths for different post types?

Yes, you can set different excerpt lengths for different post types using conditional logic in your excerpt_length filter. Your filter function can check the current post type using get_post_type() and return different word counts accordingly. For example, you might set 55 words for blog posts but 100 words for portfolio items. This requires adding code to your theme's functions.php file or a custom plugin. Without custom code, all post types share the same excerpt length setting. Some page builders and plugins also allow per-post-type excerpt settings through their interfaces without requiring code.

Why is my excerpt showing content I didn't write?

If you haven't manually written an excerpt in the excerpt field, WordPress is automatically generating one from your post content. The automatic excerpt takes the first words of your post until it reaches the word limit (55 by default), then stops. If your post starts with a shortcode, image, or other non-text content, WordPress skips that and pulls text from further down the post. To prevent this, write a custom excerpt in the excerpt field that says exactly what you want. Alternatively, you can disable automatic excerpt generation entirely using custom code and require editors to always write manual excerpts, though this increases editorial workload.

The "Read More" link is added by your theme's template code, not by WordPress's excerpt functions directly. To remove it, you need to modify your theme's archive template files or use the excerpt_more filter. Using the filter approach, add code to your functions.php file that returns an empty string or custom text instead of the default "Read More" link. Alternatively, some themes include a customizer option to control the "Read More" text or remove it entirely. Check your theme's documentation first before editing code. If you're using a page builder, look for excerpt display settings within the builder's interface.

Can excerpts include content from custom fields or ACF fields?

WordPress's built-in excerpt functionality only works with the standard excerpt field and post content. It doesn't automatically pull from custom fields or Advanced Custom Fields (ACF). However, you can create custom code that generates excerpts from custom field data. Write a function that retrieves your custom field value and displays it in place of the standard excerpt. This requires modifying your theme's templates or creating a custom plugin. Alternatively, some ACF-aware themes and plugins include built-in support for using ACF fields as excerpts. Check your theme or plugin documentation to see if this capability is already available.

What's the best excerpt length for SEO and user experience?

There's no single "best" length because it depends on your site's design, audience, and content type. For search engine results pages, Google typically displays 150 to 160 characters of text, which translates roughly to 25 to 30 words. For archive pages and feeds, 55 to 160 words is common, providing enough context for readers to decide whether to click through. The key is consistency—choose a length that works for your design and stick with it. Test how excerpts look on your actual site across different devices and contexts. If your theme's archive layout has limited space, shorter excerpts work better. If you have generous space, longer excerpts provide more information. User testing with your actual audience provides the most reliable guidance.

Related Articles

Types of User Generated Content: Complete Guide

Defining User-Generated Content Types User-generated content (UGC) refers to any material—text, images, video, audio, or interactive media—created and published by end users rather than professional c

6,361 words33 min read

AI to Generate Content: Fast, Free & Easy

What Is AI-Generated Content and Why It Matters AI-generated content refers to text, images, audio, video, or other media created by artificial intelligence systems trained on large datasets of human-

6,279 words33 min read

Make User Generated Content: Complete Creator Guide

What Is User Generated Content and Why It Matters User generated content, commonly abbreviated as UGC, refers to any form of media—video, image, text, audio, or hybrid formats—created by individuals w

6,248 words32 min read

AdSense AI Generated Content: Approval Guide 2025

Understanding AdSense and AI-Generated Content: Definition and Context AdSense AI-generated content refers to material created using artificial intelligence tools and published on websites that seek a

5,838 words31 min read

How to Check Content Is AI Generated: 5 Methods

Understanding AI-Generated Content Detection What Does It Mean to Check If Content Is AI-Generated? Checking whether content is AI-generated means examining text, images, code, or other media to deter

5,753 words29 min read

WordPress: Build Any Website Fast – Free to Start

What Is WordPress? WordPress is a free, open-source content management system (CMS) written in PHP and paired with a MySQL or MariaDB database. It was first released on May 27, 2003, by Matt Mullenweg

5,285 words5 min

Stop doing SEO by hand

Build your SEO content plan with AutoSEO

Scan your site, build a keyword plan, and AutoSEO writes your plan's articles. Review the drafts and connect your site for publishing. $39/mo per website, cancel anytime, 30-day money-back guarantee.

$39/mo per website · Cancel anytime · 30-day money-back guarantee