Custom Excerpt Length
Control the length of WordPress excerpts in words and customize the “read more” link text. Perfect for matching blog archive layouts to your design requirements without editing theme code.
Use Cases
- Set excerpt to exactly 25 words for blog archives to match your design
- Change the default
[...]to “Continue Reading” or a custom message - Create clickable “Read More” links instead of plain text
- Optimize excerpt length for mobile-friendly layouts
How It Works
- Enable the module in Switchboard
- Set your desired word count
- Customize the read more text
- Changes apply immediately to all auto-generated excerpts
Settings
| Setting | Type | Default | Description |
|---|---|---|---|
| Excerpt Length (Words) | Number | 55 | Number of words to display in excerpts |
| Read More Text | Text | […] | Text shown after the excerpt |
Excerpt Length
WordPress defaults to 55 words. Common alternatives:
| Length | Best For |
|---|---|
| 15-20 words | Mobile-first designs, card layouts |
| 25-35 words | Blog listings, magazine layouts |
| 40-55 words | Traditional blog archives |
| 75+ words | Full-width single-column layouts |
Read More Text Examples
| Text | Result |
|---|---|
... | Post text… |
[Continue Reading] | Post text [Continue Reading] |
%link% | Post text [Read More] (clickable) |
... %link% | Post text… [Read More] (clickable) |
Using %link% for Clickable Links
The special %link% placeholder creates a clickable link to the full post:
... %link%Displays as:
Post excerpt text… Read More
The link text is automatically translated to “Read More” in your site’s language.
Where Excerpts Appear
This module affects excerpts shown on:
- Blog archive pages
- Category and tag archives
- Search results
- Author archive pages
- Any template using
the_excerpt()
Manually written excerpts (in the post editor’s Excerpt field) are not affected by the word count setting. They will use your full custom excerpt but will append your custom “Read More” text.
Automatic vs Manual Excerpts
Automatic Excerpts (Affected by Word Count)
WordPress generates these from your post content when you don’t write a manual excerpt. The module:
- Counts words from your post content
- Cuts off at your specified limit
- Appends your “Read More” text
Manual Excerpts (Not Affected by Word Count)
When you write a custom excerpt in the post editor:
- Your full excerpt is used (no word limit)
- Your “Read More” text is still appended
Design Tips
Mobile Optimization
Shorter excerpts (15-25 words) work better on mobile:
- Less scrolling required
- Cards and grids look cleaner
- Faster visual scanning
Consistency
Use the same excerpt length across your site for visual consistency. If your theme has multiple archive styles, the single setting ensures uniformity.
Call to Action
Using %link% creates a clear call-to-action:
- More clickable than plain
... - Improves user engagement
- Better for accessibility
Compatibility
Works With
- All themes using WordPress’s
the_excerpt()function - Most page builders that pull excerpts
- RSS feeds
May Not Affect
- Themes with custom excerpt functions
- Page builders with their own excerpt settings
- Custom post type archives (depends on theme implementation)
FAQ
Why didn’t my excerpt length change?
If excerpts aren’t changing length:
- Clear any caching plugins
- Ensure the module is enabled
- Check if your theme uses custom excerpt code instead of
the_excerpt() - Verify you’re looking at auto-generated excerpts, not manual ones
Can I have different lengths for different post types?
This module applies one length globally. For per-post-type control, you would need custom code or a different solution.How do I remove the read more text entirely?
Set the “Read More Text” field to empty (blank). The excerpt will end without any trailing text.Does this affect the REST API?
The REST API returns the fullexcerpt.rendered which may include your custom read more text, but excerpt length in API responses may vary depending on how clients request data.Get access to all 147 modules with a single license